Vulnerability in Kernel package: 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-1002276: cfg80211: call cfg80211_stop_ap when switch from P2P_GO type. Affects Kernel versions >= ac800140c20e7ae51117e71289065bedd4930fc2, < 7b97b5776daa0b39dbdadfea176f9cc0646d4a66. 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 Kernel package is a crucial component of the Linux operating system. It provides the core functionality and acts as an interface between the hardware and software layers. The cfg80211 module within the Kernel package is responsible for managing wireless LAN configuration. It allows users to create and manage wireless access points (APs) using the P2P_GO type. However, a vulnerability has been discovered where the cfg80211_stop_ap function is not called when switching from the P2P_GO type, potentially leading to unintended APs being left active.

Vulnerability Detail

The vulnerability arises from a missing call to the cfg80211_stop_ap function when transitioning from the P2P_GO type in the cfg80211 module. This oversight can result in unintended APs being left active, which may have security implications. Attackers could potentially exploit this vulnerability to gain unauthorized access to the network or perform other malicious activities. The vulnerability was introduced in version v3.6 of the Linux Kernel and has been fixed in version v5.10.82.

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 the P2P_GO type. This can be achieved by executing the following code snippet:

#include <linux/nl80211.h>
#include <net/cfg80211.h>

struct cfg80211_registered_device *rdev;

void stop_ap_on_type_switch(void)
{
    if (rdev && rdev->wiphy && rdev->wiphy->interface_modes & BIT(NL80211_IFTYPE_P2P_GO)) {
        cfg80211_stop_ap(rdev->wiphy, 0);
    }
}

Please note that this workaround is not a permanent solution and should be replaced with the official fix by updating the Kernel package.

Conclusion

In conclusion, a vulnerability has been identified in the Kernel package, specifically in the cfg80211 module, where the cfg80211_stop_ap function is not called when switching from the P2P_GO type. This can result in unintended active APs, potentially leading to security risks. It is recommended to update the Kernel package to version v5.10.82 or later to fix this vulnerability. A temporary workaround is available by manually calling the cfg80211_stop_ap function. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow attackers to gain unauthorized access to the network or perform other malicious activities by exploiting the unintended active APs left behind when switching from the P2P_GO type.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.

Yes, a temporary workaround is available. Users can manually call the cfg80211_stop_ap function when switching from the P2P_GO type. Please refer to the 'workaround' section for more details.

Yes, this vulnerability has been fixed in version v5.10.82 of the Linux Kernel package. It is recommended to update to this version or a later one to ensure the fix is applied.

You can find more information about this vulnerability in the GSD-2021-1002276 entry of the GSD Database maintained by the Cloud Security Alliance. The link to the specific entry is available in the 'affected' section of the vulnerability details.

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