CVE-2022-49416: wifi: mac80211: fix use-after-free in chanctx code

Published Feb 26, 2025
·
Updated

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

wifi: mac80211: fix use-after-free in chanctx code

In ieee80211vifusereservedcontext(), when we have an old context and the new context's replacestate is set to IEEE80211CHANCTXREPLACENONE, we free the old context in ieee80211vifusereservedreassign(). Therefore, we cannot check the oldctx anymore, so we should set it to NULL after this point.

However, since the newctx replace state is clearly not IEEE80211CHANCTXREPLACESOTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed oldctx.

Affected Software

9 affected components
Linux Linux kernel
Linux Linux kernel>=3.17<4.9.318
Linux Linux kernel>=4.10<4.14.283
Linux Linux kernel>=4.15<4.19.247
Linux Linux kernel>=4.20<5.4.198
Linux Linux kernel>=5.5<5.10.121
Linux Linux kernel>=5.11<5.15.46
Linux Linux kernel>=5.16<5.17.14
Linux Linux kernel>=5.18<5.18.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Avoid accessing the freed old context after reassigning/reserving chanctx contexts in mac80211: ensure old_ctx is not accessed after the point described as “NULL after this point”, by using the safer return flow described for ieee80211_vif_use_reserved_context() / ieee80211_vif_use_reserved_reassign().

Event History

Feb 26, 2025
CVE Published
via MITRE·02:12 AM
Data Sourced
via MITRE·02:12 AM
DescriptionSeverity
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49416?

CVE-2022-49416 is classified as a high-severity vulnerability due to the potential for a use-after-free condition in the Linux kernel's wifi subsystem.

2

How do I fix CVE-2022-49416?

To fix CVE-2022-49416, update your Linux kernel to a version that addresses the vulnerability as specified in the security advisories.

3

Which versions of the Linux kernel are affected by CVE-2022-49416?

CVE-2022-49416 affects multiple versions, including those from 3.17 to 5.18.3, based on the introduced changes in the kernel.

4

What are the potential impacts of CVE-2022-49416 on my system?

The impact of CVE-2022-49416 could lead to system crashes or arbitrary code execution due to the use-after-free vulnerability.

5

Is there a workaround for CVE-2022-49416?

There are currently no known workarounds for CVE-2022-49416, and patching the kernel is the recommended solution.

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