Bluetooth: Fix Dangling sco_conn and Use-After-Free in sco_sock_timeout
Summary
GSD-2022-1003897: Bluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeout. Affects Kernel versions >= bc4b08383046f3282b6fa58cfcef05bd13e52b93, < 390d82733a953c1fabf3de9c9618091a7a9c90a6. 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 vulnerability affects the Kernel package in the Linux ecosystem. The Kernel is the core component of the operating system that manages system resources and provides an interface for other software to interact with the hardware. It includes various subsystems, including Bluetooth support. Bluetooth is a wireless communication protocol commonly used for short-range data exchange between devices. The vulnerability in the sco_sock_timeout function of the Bluetooth subsystem can lead to a dangling sco_conn and a use-after-free condition. This vulnerability could potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.
Vulnerability Detail
The vulnerability arises from a flaw in the sco_sock_timeout function of the Bluetooth subsystem. It was introduced in version v4.19.207 of the Linux Kernel by commit bc4b08383046f3282b6fa58cfcef05bd13e52b93 and fixed in version v4.19.247 by commit 390d82733a953c1fabf3de9c9618091a7a9c90a6. The vulnerability can result in a dangling sco_conn, which refers to a Bluetooth SCO (Synchronous Connection-Oriented) connection that is no longer valid. Additionally, it can lead to a use-after-free condition, where a reference to a freed memory object is still accessed. These issues can be exploited by an attacker to manipulate memory and potentially execute arbitrary code or cause a DoS condition.
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
There is no specific workaround mentioned for this vulnerability.
Conclusion
The vulnerability in the sco_sock_timeout function of the Bluetooth subsystem in the Linux Kernel can lead to a dangling sco_conn and a use-after-free condition. It is recommended to update the Kernel package to version v4.19.247 or later to fix this vulnerability. No specific workaround is mentioned. If you have further questions or need assistance with vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) condition.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze the dependencies and alert you if any vulnerabilities are found.
At the time of this report, there are no known public exploits for this vulnerability. However, it is always recommended to apply security patches promptly to mitigate potential risks.
Yes, this vulnerability can be exploited remotely if the affected system has Bluetooth functionality exposed to the network.
For more details about this vulnerability, you can refer to the source link provided in the database_specific section of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.