CVE-2021-0509: Heap Use-After-Free in frameworks/av

platform/hardware/interfaces Updated 02 Oct 2025

Summary

01/06/2021
Yes i
High
Not published

CVE-2021-0509: In various functions of CryptoPlugin.cpp, there is a possible use after free due to a race condition. Affects platform/hardware/interfaces across 4 version ranges.

>= 8.1:0, < 8.1:2021-06-01 >= 9:0, < 9:2021-06-01 >= 10:0, < 10:2021-06-01 >= 11:0, < 11:2021-06-01

Fixed in 8.1:2021-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The frameworks/av package is a part of the Android ecosystem and is responsible for handling audio and video functionalities. It provides APIs and services for media playback, recording, and DRM (Digital Rights Management). The package is critical for the proper functioning of media-related applications on Android devices.

Vulnerability Detail

The vulnerability (CVE-2021-0509) exists in the CryptoPlugin.cpp file of the frameworks/av package. It is caused by a race condition that leads to a use-after-free scenario. This vulnerability can be exploited locally to escalate privileges without requiring additional execution privileges. It is important to note that user interaction is not necessary for the successful exploitation of this vulnerability.

How To Fix

Minimum fixed version

8.1:2021-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 specific workaround has been provided for this vulnerability.

Conclusion

The CVE-2021-0509 vulnerability in the frameworks/av package of the Android ecosystem poses a risk of local privilege escalation. It is crucial to update the affected package to the fixed version released on June 1, 2021. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for platform/hardware/interfaces →

Share this vulnerability

FAQ

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

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

This vulnerability affects Android versions 8.1, 9, 10, and 11.

Yes, a fix for this vulnerability was released on June 1, 2021.

You can find more information about this vulnerability in the official Android Open Source Project (AOSP) security bulletin: https://storage.googleapis.com/android-osv/ASB-A-176444161.json

Related vulnerabilities

Recent vulnerabilities recorded for platform/hardware/interfaces.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

8.1:2021-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