CVE-2023-21108: AOSP Bluetooth Use after free-bta_hf_client_sdp.cc-bta_hf_client_do_disc

Summary

01/06/2023
Yes i
Critical
Not published

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 ↓

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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

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