Out-of-bounds write in ARM Mali GPU driver kbase_jd_user_buf_pin_pages
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.