Vulnerability in Kernel: cfg80211_stop_ap not called when switching from P2P_GO type
Summary
GSD-2021-1002217: cfg80211: call cfg80211_stop_ap when switch from P2P_GO type. Affects Kernel versions >= ac800140c20e7ae51117e71289065bedd4930fc2, < 8f06bb8c216bcd172394f61e557727e691b4cb24. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The Kernel package is a crucial component of the Linux operating system. It provides the core functionality and acts as a bridge between the hardware and software layers. The cfg80211 module within the Kernel 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 exists in which the cfg80211_stop_ap function is not called when switching from the P2P_GO type, leading to potential security risks.
Vulnerability Detail
The vulnerability arises from a missing call to cfg80211_stop_ap when switching from the P2P_GO type in the cfg80211 module of the Kernel. This oversight can result in the AP not being properly stopped, potentially allowing unauthorized access or other malicious activities. The vulnerability was introduced in version v3.6 of the Linux Kernel and is fixed in version v4.4.293. It is important to note that the impact and attack plausibility of this vulnerability have not been proven.
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 manually call the cfg80211_stop_ap function when switching from the P2P_GO type. This can be achieved by invoking the function in the appropriate code section responsible for the switch. Below is an example of how the function can be called:
// Code snippet demonstrating the workaround
#include <linux/cfg80211.h>
void switch_from_p2p_go_type() {
// Perform necessary operations
// Call cfg80211_stop_ap
cfg80211_stop_ap();
// Continue with other tasks
}
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 vulnerability can potentially lead to unauthorized access or other malicious activities. It is recommended to update the Linux Kernel to version v4.4.293 or later to mitigate this vulnerability. Additionally, users can manually call the cfg80211_stop_ap function as a workaround. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability is not yet proven. However, if exploited, it could potentially allow unauthorized access or facilitate other malicious activities.
You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.
Yes, a fix is available for this vulnerability. It is recommended to update the Linux Kernel to version v4.4.293 or later, which includes the necessary commit to address the issue.
Yes, a workaround is available. Users can manually call the cfg80211_stop_ap function when switching from the P2P_GO type. Refer to the 'workaround' section for more details.
For more detailed information about this vulnerability, you can refer to the vulnerability database entry at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002217.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.