CVE-2026-23281: wifi: libertas: fix use-after-free in lbs_free_adapter()

Published Mar 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

wifi: libertas: fix use-after-free in lbsfreeadapter()

The lbsfreeadapter() function uses timerdelete() (non-synchronous) for both commandtimer and txlockuptimer before the structure is freed. This is incorrect because timerdelete() does not wait for any running timer callback to complete.

If a timer callback is executing when lbsfreeadapter() is called, the callback will access freed memory since lbscfgfree() frees the containing structure immediately after lbsfreeadapter() returns.

Both timer callbacks (lbscmdtimeouthandler and lbstxlockuphandler) access priv->driverlock, priv->curcmd, priv->dev, and other fields, which would all be use-after-free violations.

Use timerdeletesync() instead to ensure any running timer callback has completed before returning.

This bug was introduced in commit 8f641d93c38a ("libertas: detect TX lockups and reset hardware") where deltimer() was used instead of deltimersync() in the cleanup path. The commandtimer has had the same issue since the driver was first written.

Affected Software

11 affected componentsFixes available
Linux Linux kernel (libertas driver)
Microsoft azl3 kernel 6.6.126.1-1
Linux Linux kernel>=2.6.24<5.10.253
Linux Linux kernel>=5.11<5.15.203
Linux Linux kernel>=5.16<6.1.167
Linux Linux kernel>=6.2<6.6.130
Linux Linux kernel>=6.7<6.12.78
Linux Linux kernel>=6.13<6.18.17
Linux Linux kernel>=6.19<6.19.7
Linux Linux kernel=7.0-rc1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Configuration

    Use timer_delete_sync() for both command_timer and tx_lockup_timer in lbs_free_adapter() so any running timer callback completes before the containing structure is freed.

    Linux kernel wifi: libertas timer cleanup in lbs_free_adapter() = timer_delete_sync()

Event History

Mar 25, 2026
CVE Published
via MITRE·10:26 AM
Data Sourced
via MITRE·10:26 AM
Description
Data Sourced
via NVD·11:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 26, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-23281?

CVE-2026-23281 has been classified as a critical vulnerability due to its potential to cause use-after-free errors in the Linux kernel.

2

How do I fix CVE-2026-23281?

To fix CVE-2026-23281, update your Linux kernel to the latest version that includes the patch for this vulnerability.

3

What systems are affected by CVE-2026-23281?

CVE-2026-23281 affects the Linux kernel specifically with the libertas driver.

4

What kind of attack could be executed using CVE-2026-23281?

An attacker could potentially exploit CVE-2026-23281 to execute arbitrary code in the context of the kernel, leading to system compromise.

5

Has CVE-2026-23281 been publicly disclosed?

Yes, CVE-2026-23281 has been publicly disclosed, and users are urged to apply the necessary updates to secure their systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203