Vulnerability in Kernel: cfg80211_stop_ap not called when switching from P2P_GO type

Kernel Updated 02 Oct 2025

Summary

29/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002306: cfg80211: call cfg80211_stop_ap when switch from P2P_GO type. Affects Kernel versions >= ac800140c20e7ae51117e71289065bedd4930fc2, < 5a9b671c8d74a3e1b999e7a0c7f366079bcc93dd. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and ensures the stability and security of the system. The cfg80211 module within the Kernel is responsible for handling wireless network configuration and management. It provides APIs for various wireless operations, including creating and stopping access points (APs) in P2P_GO mode.

Vulnerability Detail

The vulnerability identified in the Kernel's cfg80211 module occurs when switching from P2P_GO mode to another mode. In this scenario, the cfg80211_stop_ap function, which is responsible for stopping the AP, is not called. This oversight can lead to unintended consequences, such as the AP remaining active and accessible even when it should be terminated. Attackers could potentially exploit this vulnerability to gain unauthorized access to the network or perform other malicious activities.

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 temporary workaround, users can manually call the cfg80211_stop_ap function when switching from P2P_GO mode. This can be achieved by executing the following code snippet:

#include <net/cfg80211.h>

void stop_ap_workaround()
{
    struct cfg80211_registered_device *rdev;
    // Get the registered device
    rdev = cfg80211_get_dev_by_name("<device_name>");
    if (rdev) {
        // Stop the AP
        cfg80211_stop_ap(rdev, <AP_interface>, <reason_code>);
        // Release the device
        cfg80211_put_dev(rdev);
    }
}

Replace <device_name> with the name of the wireless device and provide the appropriate values for <AP_interface> and <reason_code> based on your specific configuration.

Conclusion

The vulnerability in the Kernel's cfg80211 module, which fails to call cfg80211_stop_ap when switching from P2P_GO mode, can have serious security implications. It is crucial to update the Linux Kernel to version v5.15.5 or later to mitigate this vulnerability. In the meantime, a temporary workaround is available by manually invoking the cfg80211_stop_ap function. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability allows an attacker to keep an access point active even when it should be terminated, potentially enabling unauthorized access to the network or other malicious activities.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert analyzes the manifest file (e.g., package-lock.json) of your application and provides real-time alerts for open-source vulnerabilities, including this one.

Yes, a temporary workaround involves manually calling the cfg80211_stop_ap function when switching from P2P_GO mode. Please refer to the 'workaround' section for more details.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.5 or later. The fix was implemented in commit 5a9b671c8d74a3e1b999e7a0c7f366079bcc93dd. Please refer to the 'how_to_fix' section for more information.

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