CVE-2021-0397 Use after free in Android

Critical 9.8 Published Updated

A double free vulnerability in Android's SDP discovery allows remote attackers to execute arbitrary code without user interaction or privileges.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-0397?

CVE-2021-0397 is a critical use after free vulnerability in Google Android, published on 10 Mar 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In sdp_copy_raw_data of sdp_discovery.cc, there is a possible system compromise due to a double free. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-11 Android-8.1 Android-9 Android-10Android ID: A-174052148

Weakness: CWE-415

Which versions are affected by CVE-2021-0397?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2021-0397?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-0397 being exploited?

There is no known exploitation of CVE-2021-0397 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Google Android vulnerabilities

Sources

Also known as A-174052148, ASB-A-174052148, GHSA-7864-h326-5m8j.

Is CVE-2021-0397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free