Fix dangling sco_conn and use-after-free in sco_sock_timeout in Kernel
Summary
GSD-2022-1003771: Bluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeout. Affects Kernel versions >= 5ccb04c6e1fb7b97fa2e1785b67c3a1cb3527ef7, < 6f55fac0af3531cf60d11369454c41f5fc81ab3f. 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 is a crucial component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The vulnerability in question affects the Kernel's Bluetooth module, which is responsible for handling Bluetooth communication. Bluetooth is a wireless technology used for short-range communication between devices. This vulnerability specifically impacts the sco_sock_timeout function in the Bluetooth module.
Vulnerability Detail
The sco_sock_timeout function in the Bluetooth module of the Kernel suffers from two issues: a dangling sco_conn and a use-after-free vulnerability. A dangling sco_conn occurs when a pointer to a Bluetooth SCO (Synchronous Connection-Oriented) connection is not properly cleaned up, leading to potential memory corruption or information disclosure. The use-after-free vulnerability arises when a reference to a freed memory object is still accessed, potentially resulting in a crash or arbitrary code execution. Exploiting these vulnerabilities could allow an attacker to manipulate Bluetooth connections and potentially compromise the system's security or stability.
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 disable Bluetooth functionality on their systems until the Kernel update is applied. This can be done by turning off Bluetooth adapters or disabling Bluetooth services. However, this workaround may impact the usability of Bluetooth-dependent features or devices.
Conclusion
In conclusion, the Kernel's Bluetooth module is vulnerable to a dangling sco_conn and use-after-free issue in the sco_sock_timeout function. This vulnerability can potentially be exploited to manipulate Bluetooth connections and compromise system security or stability. To mitigate this risk, it is crucial to update the Linux Kernel to version v5.4.198 or later. Disabling Bluetooth functionality can serve as a temporary workaround, but it may impact the usability of Bluetooth-dependent features or devices. For further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability could potentially allow an attacker to manipulate Bluetooth connections and compromise the system's security or stability. It may lead to memory corruption, information disclosure, crashes, or even arbitrary code execution.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will analyze the dependencies and alert you if any vulnerable versions are detected.
At the time of this report, there are no known public exploits for this vulnerability. However, it is essential to apply the recommended Kernel update promptly to mitigate the risk.
As a temporary measure, you can disable Bluetooth functionality on your system until the Kernel update is applied. This can be done by turning off Bluetooth adapters or disabling Bluetooth services. However, keep in mind that this may impact the usability of Bluetooth-dependent features or devices.
You can find more information about the Kernel update, including the specific commit that addresses this vulnerability, in the Linux Kernel's official repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.