CVE-2022-20142 Deserialization in Android

High 7.8 Published Updated

Local attackers can achieve arbitrary code execution and privilege escalation via a parcel mismatch in Android's GeofenceHardwareRequestParcelable handling.

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-2022-20142?

CVE-2022-20142 is a high-severity unsafe deserialization 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 createFromParcel of GeofenceHardwareRequestParcelable.java, there is a possible arbitrary code execution due to parcel mismatch. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-10 Android-11 Android-12 Android-12LAndroid ID: A-216631962

Which versions are affected by CVE-2022-20142?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2022-20142?

Apply the vendor's patch.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2022-20142 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

All Google Android vulnerabilities

Sources

Also known as A-216631962, ASB-A-216631962, GHSA-m2c4-qf2x-c4mh.

Is CVE-2022-20142 in your software?

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

Check your SBOMs for free