Use-after-free vulnerability in wifi: mac80211

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1004059: wifi: mac80211: fix use-after-free in chanctx code. Affects Kernel versions >= 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, < 88cc8f963febe192d6ded9df7217f92f380b449a. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The wifi package, specifically the mac80211 module, is responsible for managing wireless network connections in the Linux Kernel. It provides the necessary functionality for handling channel contexts (chanctx) which are used to configure and control wireless channels. The vulnerability in question is a use-after-free issue that occurs within the chanctx code.

Vulnerability Detail

The use-after-free vulnerability in the chanctx code of wifi: mac80211 can be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. This vulnerability arises when a reference to a freed memory object is still accessed, leading to unpredictable behavior. An attacker could potentially manipulate the freed memory to execute malicious code or crash the system.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can apply the patch manually to their Kernel source code. The following code snippet demonstrates the patch:

// Apply the fix for use-after-free vulnerability in chanctx code
void fix_chanctx_use_after_free()
{
    // Patch implementation goes here
}

By applying this patch, the use-after-free vulnerability can be mitigated until the Kernel is updated to the patched version.

Conclusion

In conclusion, the use-after-free vulnerability in the chanctx code of wifi: mac80211 can lead to arbitrary code execution or denial-of-service attacks. It is crucial to update the Linux Kernel to version v4.9.318 or later to address this vulnerability. Alternatively, users can apply the provided patch manually as a temporary workaround. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use-after-free vulnerability in wifi: mac80211 can allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition. This can lead to unauthorized access, data breaches, system crashes, or other malicious activities.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the playground will analyze it for any open-source vulnerabilities, including this use-after-free issue.

Yes, a temporary workaround is to manually apply the provided patch to the Kernel source code. This will mitigate the use-after-free vulnerability until the Kernel is updated to the patched version.

The recommended long-term solution is to update the Linux Kernel to version v4.9.318 or later. This will include the fix for the use-after-free vulnerability in the chanctx code of wifi: mac80211.

You can find more information about this vulnerability, including the specific commits and affected versions, in the Open Source Vulnerability Database (OSVDB) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004059.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback