CVE-2021-39793: Out-of-bounds write in ARM Mali GPU driver kbase_jd_user_buf_pin_pages
- Vendor
CVE-2021-39793 is a local privilege-escalation vulnerability in the ARM Mali GPU kernel driver used on Android. According to the provided Android bulletin text, the flaw is in kbase_jd_user_buf_pin_pages() in mali_kbase_mem.c and is caused by a logic error that results in a possible out-of-bounds write. Supporting content further attributes the issue to incorrect handling of Mali memory permission flags in that function, specifically write-related logic involving KBASE_REG_GPU_WR and KBASE_REG_CPU_WR, which can allow unauthorized writable access where it should not be permitted. In practical exploitation, this bug can be used by an unprivileged app to obtain a write primitive against otherwise read-only memory pages and then pivot to full privilege escalation on affected Android devices using Mali GPUs.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can allow local escalation of privilege from an unprivileged Android app to root or kernel-level compromise on affected devices. The supplied context states that the bug was exploited in the wild and that exploitation can provide write access to read-only file-backed pages, enabling code injection into privileged processes and ultimately full device compromise. This can result in compromise of confidentiality, integrity, and availability, including disabling SELinux, modifying privileged execution flow, and executing attacker-controlled code with elevated privileges.
Mitigation
If you can’t patch tonight, do this now.
Until patched builds are deployed, reduce exposure by limiting installation and execution of untrusted applications, since the vulnerability is locally reachable from app context and does not require user interaction. Where operationally feasible, restrict access to the GPU device node and related ioctls from untrusted app domains via SELinux or equivalent policy hardening, though the supplied content does not state this as an official mitigation and compatibility impact may be significant. Prioritize patching on devices using affected Mali Midgard, Bifrost, and Valhall driver branches.
Remediation
Patch, then assume compromise.
Apply the vendor and Android security updates that patch CVE-2021-39793 in the affected ARM Mali GPU kernel driver. The provided content does not include a specific patch commit or exact fixed driver version for this CVE, so that information is currently not available from the supplied material. Device vendors should update to a Mali driver release containing the fix and ship the corresponding Android kernel/security bulletin updates.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-39793 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 11, 2022.
- Is there a public exploit for CVE-2021-39793?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-39793.
- Is there a patch for CVE-2021-39793?
- Apply the vendor and Android security updates that patch CVE-2021-39793 in the affected ARM Mali GPU kernel driver. The provided content does not include a specific patch commit or exact fixed driver version for this CVE, so that information is currently not available from the supplied material.
- What products are affected by CVE-2021-39793?
- Google Android.
- How severe is CVE-2021-39793?
- CVE-2021-39793 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.69% (54th percentile) as of Oct 16, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.