CVE-2021-0516 Use after free in Android

Critical 9.8 Published Updated

A use-after-free vulnerability in Android's P2P processing allows remote attackers to escalate privileges without user interaction.

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-0516?

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

Official description

In p2p_process_prov_disc_req of p2p_pd.c, there is a possible out of bounds read and write due to a use after free. This could lead to remote escalation of privilege 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-181660448

Weakness: CWE-787, CWE-416, CWE-125

Which versions are affected by CVE-2021-0516?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2021-0516?

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-0516 being exploited?

There is no known exploitation of CVE-2021-0516 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-181660448, ASB-A-181660448, GHSA-3mqp-7m9g-rqcq.

Is CVE-2021-0516 in your software?

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

Check your SBOMs for free