CVE-2023-21096: Use After Free Vulnerability in Android Bluetooth Module

Summary

01/04/2023
Yes i
Critical
Not published

CVE-2023-21096: In OnWakelockReleased of attribution_processor.cc, there is a use after free that could lead to remote code execution with no additional execution privileges needed. Affects platform/packages/modules/Bluetooth across 2 version ranges.

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

Fixed in 13-next:2023-04-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 Android Bluetooth module is responsible for providing Bluetooth functionality on Android devices. It allows users to connect and communicate with Bluetooth devices such as headphones, speakers, and smartwatches. The module is an integral part of the Android operating system and is used by various applications and system services. However, a use after free vulnerability has been discovered in the Bluetooth module, which could potentially lead to remote code execution without requiring any additional execution privileges.

Vulnerability Detail

The use after free vulnerability exists in the OnWakelockReleased function of the attribution_processor.cc file in the Bluetooth module. This vulnerability occurs when a wakelock is released, and the AttributionProcessor attempts to process the event. Due to improper memory management, a reference to the released wakelock is still accessed, leading to a use after free condition. An attacker could exploit this vulnerability to execute arbitrary code on the affected device. The exploitation does not require any user interaction.

How To Fix

Minimum fixed version

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

Currently, there is no known workaround for this vulnerability. It is recommended to apply the official patches provided by the Android Open Source Project (AOSP) to ensure the security of the Bluetooth module.

Conclusion

The use after free vulnerability in the Android Bluetooth module poses a critical security risk as it allows for remote code execution without user interaction. It is crucial for users to update their devices to the latest version that includes the fix provided by the Android Open Source Project (AOSP). 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 could allow an attacker to execute arbitrary code on the affected device, potentially leading to a complete compromise of the device and unauthorized access to user data.

No, this vulnerability can be exploited without any user interaction.

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

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

You can use the Vulert Playground (https://vulert.com/scanner) to check if your device is affected by this vulnerability. Simply visit the playground and enter the details of your device to receive an instant analysis.

Related vulnerabilities

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

How To Fix

Minimum fixed version

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