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-1002244: cfg80211: call cfg80211_stop_ap when switch from P2P_GO type. Affects Kernel versions >= ac800140c20e7ae51117e71289065bedd4930fc2, < b8a045e2a9b234cfbc06cf36923886164358ddec. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a critical component of the Linux operating system that provides core functionality and manages system resources. It acts as an interface between the hardware and software layers, enabling communication and coordination between various components. The cfg80211 module within the Kernel is responsible for handling wireless network configuration and management. It provides functions and APIs for controlling different aspects of wireless networking, including access point (AP) functionality.

The vulnerability in the Kernel's cfg80211 module arises when switching from the P2P_GO (Group Owner) type. In this scenario, the cfg80211_stop_ap function is not called, leading to potential security issues.

Vulnerability Detail

The vulnerability occurs due to a missing call to the cfg80211_stop_ap function when switching from the P2P_GO type. This oversight can have several ramifications:

  1. Unauthorized Access: If an attacker can exploit this vulnerability, they may be able to gain unauthorized access to the wireless network, potentially compromising sensitive information or launching further attacks.

  2. Denial of Service: By exploiting this vulnerability, an attacker could disrupt the wireless network by causing the AP to remain active even when it should be stopped, leading to resource exhaustion and denial of service.

To fix this vulnerability, the Kernel code needs to be updated to include the necessary call to cfg80211_stop_ap when switching from the P2P_GO type. This ensures that the AP is properly stopped and prevents potential security issues.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, follow these steps:

  1. Identify the version of the Linux Kernel that includes the vulnerable code.
  2. Update the Kernel to a version that includes the fix. The vulnerability is fixed in Linux Kernel version v4.19.218.
  3. Apply the necessary patches or updates to the Kernel code to include the call to cfg80211_stop_ap when switching from the P2P_GO type.
  4. Recompile and reinstall the updated Kernel to ensure the fix is applied.

It is recommended to consult the official Linux Kernel documentation and community resources for detailed instructions on updating and patching the Kernel.

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 manually call the cfg80211_stop_ap function when switching from the P2P_GO type. This can be achieved by modifying the relevant code section to include the necessary function call. Here is an example of how the code can be modified:

// Original code
if (type == P2P_GO) {
  // Switching from P2P_GO type
  // Missing call to cfg80211_stop_ap
}

// Modified code
if (type == P2P_GO) {
  // Switching from P2P_GO type
  cfg80211_stop_ap();
}

Conclusion

In conclusion, the vulnerability in the Kernel's cfg80211 module can potentially allow unauthorized access to wireless networks and lead to denial of service attacks. It is crucial to update the Kernel to a version that includes the fix and apply the necessary patches or updates. Users can also consider implementing the provided workaround until the fix is applied. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow unauthorized access to the wireless network and lead to denial of service attacks.

You can use tools like Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert Playground allows you to analyze your application's manifest file, such as package-lock.json, and provides real-time alerts for open-source vulnerabilities.

Yes, the vulnerability is fixed in Linux Kernel version v4.19.218. It is recommended to update the Kernel to a version that includes the fix.

Yes, a workaround is to manually call the cfg80211_stop_ap function when switching from the P2P_GO type. Refer to the 'workaround' section for more details.

You can refer to the official Linux Kernel documentation and community resources for more information on this vulnerability and its fix.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, follow these steps:

  1. Identify the version of the Linux Kernel that includes the vulnerable code.
  2. Update the Kernel to a version that includes the fix. The vulnerability is fixed in Linux Kernel version v4.19.218.
  3. Apply the necessary patches or updates to the Kernel code to include the call to cfg80211_stop_ap when switching from the P2P_GO type.
  4. Recompile and reinstall the updated Kernel to ensure the fix is applied.

It is recommended to consult the official Linux Kernel documentation and community resources for detailed instructions on updating and patching the Kernel.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.