Skip to main content
Mallory
HighExploited in the wildCISA KEVVulnerability

CVE-2021-39793: Out-of-bounds write in ARM Mali GPU driver kbase_jd_user_buf_pin_pages

Published Mar 16, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.69%54th percentile
CISA KEVYesAdded Apr 11, 2022
In the wildActivePer CISA KEV
Vendor
Google
IdentifiersCVE-2021-39793CWE-787 · Out-of-bounds Write

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
GoogleAndroidoperating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.