CVE-2023-20954: Heap OOB write of 0x00 in SDP_AddAttribute in Bluetooth

Summary

01/03/2023
Yes i
Critical
Not published

CVE-2023-20954: In SDP_AddAttribute of sdp_db.cc, there is a possible out of bounds write due to an incorrect bounds check. Affects platform/packages/modules/Bluetooth across 2 version ranges.

>= 13:0, < 13:2023-03-01 >= 13-next:0, < 13-next:2023-03-01

Fixed in 13-next:2023-03-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 Bluetooth package in the Android ecosystem is responsible for providing Bluetooth functionality to Android devices. It allows users to connect and communicate with other Bluetooth-enabled devices. This package is an integral part of the Android operating system and is present in multiple versions, starting from Android 11. However, a vulnerability has been discovered in the SDP_AddAttribute function of the Bluetooth package, which can lead to remote code execution without requiring any additional execution privileges. This vulnerability can be exploited without user interaction.

Vulnerability Detail

The vulnerability (CVE-2023-20954) resides in the SDP_AddAttribute function of the Bluetooth package. It is caused by an incorrect bounds check, resulting in a possible out-of-bounds write. An attacker can exploit this vulnerability remotely, potentially leading to the execution of arbitrary code on the affected device. The impact of this vulnerability is critical as it can compromise the security and integrity of the device, allowing an attacker to gain unauthorized access or perform malicious activities.

How To Fix

Minimum fixed version

13-next:2023-03-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

As a workaround, users can disable Bluetooth on their devices until the fix is applied. Disabling Bluetooth will prevent potential attackers from exploiting this vulnerability. However, this workaround may limit the functionality and convenience of using Bluetooth-enabled features on the device.

Conclusion

The vulnerability (CVE-2023-20954) in the Bluetooth package can lead to remote code execution on Android devices. It is crucial to update the Bluetooth package to the fixed versions to mitigate the risk of exploitation. Disabling Bluetooth can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/packages/modules/Bluetooth →

Share this vulnerability

FAQ

This vulnerability can lead to remote code execution on the affected device, potentially allowing an attacker to gain unauthorized access or perform malicious activities.

No, user interaction is not needed for exploitation of this vulnerability.

This vulnerability affects Android versions 11, 12, 12L, and 13.

There are no known instances of this vulnerability being exploited at the time of this report.

Yes, the fix for this vulnerability is available in the fixed versions of the Bluetooth package for Android 11, 12, 12L, and 13.

Related vulnerabilities

Recent vulnerabilities recorded for platform/packages/modules/Bluetooth.

How To Fix

Minimum fixed version

13-next:2023-03-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