CVE-2023-21108: AOSP Bluetooth Use after free-bta_hf_client_sdp.cc-bta_hf_client_do_disc
Summary
CVE-2023-21108: In sdpu_build_uuid_seq of sdp_discovery.cc, there is a possible out of bounds write due to a use after free. Affects platform/packages/modules/Bluetooth across 2 version ranges.
>= 13:0, < 13:2023-06-01
>= 13-next:0, < 13-next:2023-06-01
Fixed in 13-next:2023-06-01. 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 AOSP Bluetooth package is a module in the Android ecosystem that provides Bluetooth functionality. It allows devices to connect and communicate wirelessly using the Bluetooth protocol. This vulnerability affects the Bluetooth module's HFP (Hands-Free Profile) support. HFP enables users to make and receive phone calls through a Bluetooth connection. The vulnerability allows for a use after free scenario in the sdpu_build_uuid_seq function of the sdp_discovery.cc file, potentially leading to remote code execution over Bluetooth. Exploitation does not require user interaction.
Vulnerability Detail
The vulnerability originates from a use after free issue in the sdpu_build_uuid_seq function of the sdp_discovery.cc file. This function performs UUID sequence building for the HFP client's SDP (Service Discovery Protocol) records. Due to a use after free, an out-of-bounds write can occur, leading to potential remote code execution over Bluetooth. The vulnerability can be exploited if HFP support is enabled, without requiring additional execution privileges. The impact of this vulnerability is critical as it allows an attacker to execute arbitrary code remotely without user interaction.
How To Fix
Minimum fixed version
13-next:2023-06-01
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The AOSP Bluetooth module is vulnerable to a critical use after free vulnerability that can lead to remote code execution over Bluetooth. It is recommended to apply the provided fix from the AOSP and update to the latest version of the Bluetooth module. Developers should also disable HFP support if not required. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for platform/packages/modules/Bluetooth →
FAQ
The impact of this vulnerability is critical as it allows for remote code execution over Bluetooth without user interaction.
No, this vulnerability does not require any additional execution privileges.
No, user interaction is not needed for exploitation of this vulnerability.
The vulnerability affects versions 11.0, 12.0, 12L.0, and 13.0 of the Bluetooth module in the Android ecosystem.
Yes, a fix is available from the Android Open Source Project (AOSP) and can be applied by updating to the latest version of the Bluetooth module.
Related vulnerabilities
Recent vulnerabilities recorded for platform/packages/modules/Bluetooth.