Out of Bounds Write in BTM_BlePeriodicSyncTransfer in libbt-stack

Summary

01/12/2023
Yes i
High
Not published

CVE-2023-40080: In multiple functions of btm_ble_gap.cc, there is a possible out of bounds write due to a logic error in the code. Affects platform/packages/modules/Bluetooth across 3 version ranges.

>= 13:0, < 13:2023-12-01 >= 14:0, < 14:2023-12-01 >= 14-next:0, < 14-next:2023-12-01

Fixed in 14-next:2023-12-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 Bluetooth package in the Android ecosystem is responsible for managing Bluetooth functionality on Android devices. It provides APIs and services for Bluetooth communication between devices. The vulnerability affects the BTM_BlePeriodicSyncTransfer function in the libbt-stack library, which is used for periodic synchronization transfers in Bluetooth Low Energy (BLE) connections. BLE is a power-efficient version of Bluetooth designed for short-range communication between devices. The vulnerability allows for an out of bounds write due to a logic error in the code.

Vulnerability Detail

The vulnerability arises from a logic error in multiple functions of btm_ble_gap.cc. This flaw can be exploited locally to escalate privileges without requiring additional execution privileges. The vulnerability does not require user interaction for exploitation. An attacker could potentially leverage this vulnerability to gain unauthorized access or perform malicious actions on the affected device.

How To Fix

Minimum fixed version

14-next:2023-12-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 provided for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section.

Conclusion

In conclusion, the vulnerability in the BTM_BlePeriodicSyncTransfer function of the libbt-stack library in the Bluetooth package could allow for local privilege escalation. It is crucial to update the affected package to the fixed versions to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

The vulnerability could lead to local escalation of privilege, potentially allowing an attacker to gain unauthorized access or perform malicious actions on the affected device.

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

The vulnerability affects versions 13 and 14 of the Android ecosystem.

The severity of this vulnerability is classified as High.

More information about this vulnerability can be found in the Android Open Source Vulnerability database. The vulnerability ID is ASB-A-275057843.

Related vulnerabilities

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

How To Fix

Minimum fixed version

14-next:2023-12-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