CVE-2023-21198: Array Index Error in remove_sdp_record in libbtif

Summary

01/06/2023
Yes i
Moderate
Not published

CVE-2023-21198: In remove_sdp_record of btif_sdp_server.cc, there is a possible out of bounds read due to a missing bounds check. 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 Devnack Penetration testing for web, API and mobile 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 to Android devices. It includes various modules and components for Bluetooth communication. The vulnerability affects the btif_sdp_server.cc file in the system/btif/src directory. This file is responsible for handling Service Discovery Protocol (SDP) records in the Bluetooth stack. SDP records contain information about available Bluetooth services on a device.

Vulnerability Detail

The vulnerability, identified as CVE-2023-21198, exists in the remove_sdp_record function of btif_sdp_server.cc. It is caused by a missing bounds check, leading to an array index error. An attacker can exploit this vulnerability to trigger an out-of-bounds read, potentially resulting in local information disclosure. The exploitation does not require any additional execution privileges or 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

No workaround has been provided for this vulnerability.

Conclusion

The vulnerability in the remove_sdp_record function of libbtif can lead to local information disclosure. It can be fixed by updating the affected package to the commit b9a94d52c59f55318e7a7d0d5f199e4a633a7782 or a later version. No workaround is available at the moment. The severity of this vulnerability is considered moderate.

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

Share this vulnerability

FAQ

The vulnerability can lead to local information disclosure, potentially exposing sensitive data on the affected device.

No, user interaction is not needed for exploitation.

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

The severity of this vulnerability is considered moderate.

Yes, a fix has been implemented in the commit b9a94d52c59f55318e7a7d0d5f199e4a633a7782 of the affected package.

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