CVE-2023-20931: Out of Bounds Write in avdt_scb_hdl_write_req in libbt-stack

Summary

01/03/2023
Yes i
High
Not published

CVE-2023-20931: In avdt_scb_hdl_write_req of avdt_scb_act.cc, there is a possible out of bounds write due to a heap buffer overflow. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is platform/packages/modules/Bluetooth in the Android ecosystem. This package provides Bluetooth functionality for Android devices. It allows users to connect and communicate with Bluetooth devices such as headphones, speakers, and smartwatches. The avdt_scb_hdl_write_req function in the avdt_scb_act.c file of the libbt-stack library is responsible for handling write requests in the AVDTP (Audio/Video Distribution Transport Protocol) service. AVDTP is used for streaming audio and video content over Bluetooth connections. This vulnerability affects versions 11, 12, 12L, and 13 of the Android platform.

Vulnerability Detail

The vulnerability, identified as CVE-2023-20931, is an out-of-bounds write issue in the avdt_scb_hdl_write_req function of the avdt_scb_act.c file. This vulnerability occurs due to a heap buffer overflow, which can result in writing beyond the bounds of the allocated buffer. An attacker can exploit this vulnerability to escalate their privileges locally without requiring additional execution privileges. Notably, user interaction is not necessary for exploitation. The consequences of this vulnerability can range from unauthorized access to sensitive information to potential control over the affected device.

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

There is no specific workaround mentioned for this vulnerability. It is recommended to apply the fix provided by updating the package to the fixed version.

Conclusion

In conclusion, the platform/packages/modules/Bluetooth package in the Android ecosystem is vulnerable to an out-of-bounds write issue in the avdt_scb_hdl_write_req function. This vulnerability can be exploited to escalate privileges locally without requiring additional execution privileges. It is crucial to update the package to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability can lead to local privilege escalation, allowing an attacker to gain elevated privileges on the affected device.

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

Versions 11, 12, 12L, and 13 of the Android platform are affected by this vulnerability.

AVDTP (Audio/Video Distribution Transport Protocol) is a Bluetooth profile used for streaming audio and video content over Bluetooth connections.

This vulnerability is classified as High severity.

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