CVE-2021-39804: Null Pointer Dereference Vulnerability in platform/frameworks/av

platform/frameworks/av Updated 02 Oct 2025

Summary

01/04/2022
Yes i
High
Not published

CVE-2021-39804: In reinit of HeifDecoderImpl.cpp, there is a possible crash due to a missing null check. Affects platform/frameworks/av across 3 version ranges.

>= 11:0, < 11:2022-04-01 >= 12:0, < 12:2022-04-01 >= 12L:0, < 12L:2022-04-01

Fixed in 11:2022-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 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 platform/frameworks/av package is a part of the Android ecosystem and is responsible for handling audio and video functionalities. It provides APIs and components for media playback, recording, and processing. This package is crucial for various multimedia applications on Android devices.

Vulnerability Detail

The vulnerability (CVE-2021-39804) exists in the HeifDecoderImpl.cpp file of the platform/frameworks/av package. During the reinit process, a null check is missing, leading to a possible crash. Exploiting this vulnerability could result in a remote persistent denial of service (DoS) attack. The attack can be triggered through the file picker, and it does not require any additional execution privileges. However, user interaction is necessary for successful exploitation.

How To Fix

Minimum fixed version

11:2022-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

No workaround has been mentioned for this vulnerability.

Conclusion

The null pointer dereference vulnerability in platform/frameworks/av (CVE-2021-39804) can lead to a remote denial of service (DoS) attack. It is crucial for developers to apply the provided patch to mitigate the vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/frameworks/av →

Share this vulnerability

FAQ

This vulnerability can lead to a remote denial of service (DoS) attack, causing the affected application or system to crash and become unresponsive.

The vulnerability was introduced in Android 11 and continues to affect Android 12 and Android 12L.

Yes, successful exploitation of this vulnerability requires user interaction, specifically through the file picker.

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

Yes, a fix has been provided by the Android Open Source Project (AOSP) in the form of a patch.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/av.

How To Fix

Minimum fixed version

11:2022-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