Read-only memory write and privilege escalation in Arm Mali GPU Kernel Driver
CVE-2022-22706 is a vulnerability in the Arm Mali GPU Kernel Driver that allows a local non-privileged user to write to read-only memory pages. Incorrect handling of CPU and GPU write-permission flags in kbase_jd_user_buf_pin_pages() permits GPU writes to pages that should remain read-only. Affected versions are Midgard r26p0 through r31p0, Bifrost r0p0 through r35p0, and Valhall r19p0 through r35p0. Attackers can modify cached file-backed pages, including shared-library code used by privileged processes, enabling privilege escalation. The issue was also reported as CVE-2021-39793, and Arm has acknowledged evidence of limited, targeted exploitation.
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.
Unauthorized modification of read-only file-backed pages can compromise code executed by other processes without changing the underlying files on disk. On affected Android devices, this primitive can enable code injection into privileged services and escalation to system or root privileges. Demonstrated exploit chains have additionally achieved kernel-module execution and disabled SELinux, although these outcomes depend on device-specific permissions and additional exploitation steps. Successful exploitation can compromise device confidentiality, integrity, and availability.
If you can’t patch tonight, do this now.
Where operationally feasible, restrict untrusted applications and users from accessing the Mali GPU device through device permissions and SELinux policy. Such restrictions may affect graphics functionality and require platform-level changes. Limit installation and execution of untrusted applications to reduce local attack opportunities. These measures are temporary risk reductions, not substitutes for a patched driver.
Patch, then assume compromise.
Install device-vendor firmware or kernel updates incorporating Arm's fixes. The fixed driver releases are Midgard r32p0 and Bifrost/Valhall r36p0; use these or later applicable releases containing the fix. Device manufacturers must integrate the corrected kernel driver into shipped firmware; updating applications or browser software alone does not remediate this driver vulnerability.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.