CVE-2021-0942 Memory corruption in Android
An untrusted app can trigger an out-of-bounds read in the Android kernel via ioctl, potentially leading to code execution or privilege escalation.
- 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-0942?
CVE-2021-0942 is a critical memory corruption vulnerability in Google Android, published on 13 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The path in this case is a little bit convoluted. The end result is that via an ioctl an untrusted app can control the ui32PageIndex offset in the expression:sPA.uiAddr = page_to_phys(psOSPageArrayData->pagearray[ui32PageIndex]);With the current PoC this crashes as an OOB read. However, given that the OOB read value is ending up as the address field of a struct I think i seems plausible that this could lead to an OOB write if the attacker is able to cause the OOB read to pull an interesting kernel address. Regardless if this is a read or write, it is a High severity issue in the kernel.Product: AndroidVersions: Android SoCAndroid ID: A-238904312
Weakness: CWE-125
Which versions are affected by CVE-2021-0942?
It affects 1 product.
Products include Google Android.
How do I fix CVE-2021-0942?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-0942 being exploited?
There is no known exploitation of CVE-2021-0942 in the wild and no public exploit code.
Other vulnerabilities in Google Android
Sources
Also known as A-238904312, ASB-A-238904312, GHSA-74fp-85wq-7rrv.