CVE-2021-39806 Use after free in Android
A double free vulnerability in Android's servicemanager allows local attackers to escalate privileges during startup without user interaction.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-39806?
CVE-2021-39806 is a high-severity use after free vulnerability in Google Android, published on 15 Jun 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In closef of label_backends_android.c, there is a possible way to corrupt memory due to a double free. This could lead to local escalation of privilege during startup of servicemanager, if an attacker can trigger an initialization failure, with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-12LAndroid ID: A-215387420
Weakness: CWE-415
Which versions are affected by CVE-2021-39806?
It affects 1 product.
Products include Google Android.
How do I fix CVE-2021-39806?
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-39806 being exploited?
There is no known exploitation of CVE-2021-39806 in the wild and no public exploit code.
Other vulnerabilities in Google Android
Sources
Also known as A-215387420, GHSA-j22w-f6g9-q452, PUB-A-215387420.