Security Advisory

CVE-2021-29256: Arm Mali GPU Driver Use-After-Free

Last updated:
  • CVE-2021-29256

CVE-2021-29256 is a use-after-free in the Arm Mali GPU kernel driver that lets an unprivileged user reach freed memory and gain root or read kernel data. Bifrost and Valhall drivers are fixed in r30p0. NVD scores it 8.8, CISA lists it in KEV, and Android ships the fix at security patch level 2023-07-05.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

2.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-29256 · Source: NVD

Affected components

ComponentCPEVersion range
Arm Bifrost GPU Kernel Drivercpe:2.3:a:arm:bifrost_gpu_kernel_driver:*:*:*:*:*:*:*:*r16p0 through r29p0 affected, fixed in r30p0 (CVE record; NVD: from r16p0, before r30p0)
Arm Valhall GPU Kernel Drivercpe:2.3:a:arm:valhall_gpu_kernel_driver:*:*:*:*:*:*:*:*r19p0 through r29p0 affected, fixed in r30p0 (CVE record; NVD: from r19p0, before r30p0)
Arm Midgard GPU Kernel Drivercpe:2.3:a:arm:midgard_gpu_kernel_driver:*:*:*:*:*:*:*:*r28p0 through r30p0 affected (CVE record; NVD: from r28p0, before r31p0)
Android devices with an Arm Mali GPU—Security patch level before 2023-07-05; fixed at 2023-07-05 or later (Android Security Bulletin July 2023, A-283489460)

What does this mean for affected devices?

CVE-2021-29256 is a use-after-free (CWE-416) in the Arm Mali GPU kernel driver, the kbase driver in the kernel of devices built on a Mali GPU. The CVE record, published by MITRE on 2021-05-24, says the driver "allows an unprivileged user to achieve access to freed memory, leading to information disclosure or root privilege escalation" (CVE record). NVD's Primary score is 8.8, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, plus NVD CVSS v2 9.0; CISA's ADP container gives the same 8.8 vector, and the record carries no CNA score (NVD).

Which Mali driver releases are affected?

The record lists Bifrost r16p0 through r29p0 "before r30p0", Valhall r19p0 through r29p0 "before r30p0", and Midgard r28p0 through r30p0. NVD's CPE ranges end before r30p0 for Bifrost and Valhall and before r31p0 for Midgard. CISA's KEV entry points to Arm's Mali GPU Driver Vulnerabilities page as the vendor reference.

How do you fix CVE-2021-29256?

Arm's fixed driver dates from 2021, but phones received it much later: the Android Security Bulletin for July 2023 lists CVE-2021-29256 (A-283489460, severity High as assessed by Arm) under Arm components at the 2023-07-05 patch level and says there are indications it "may be under limited, targeted exploitation". A device at security patch level 2023-07-05 or later includes it. Device makers who build their own kernels use Bifrost or Valhall r30p0 or later, and for Midgard a release after r30p0 (NVD's range ends before r31p0). CISA's required action is to apply updates per vendor instructions or discontinue use of the product if updates are unavailable. The two-year gap between the driver fix and the Android listing is the vendor-driver patch lag that the Linux kernel CVE guide describes; the memory corruption fix guide covers the bug class.

Is CVE-2021-29256 exploited?

Yes. CISA added it to the KEV catalog on 2023-07-07 as "Arm Mali GPU Kernel Driver Use-After-Free Vulnerability", due 2023-07-28, with known ransomware campaign use marked Unknown. It is listed as of 2026-11-25 (catalog version 2026.11.24). FIRST EPSS gives it 0.02938, the 87th percentile, in the 2026-11-24 dataset. The same bulletin also flagged the Mali information leak CVE-2023-26083; the 2021 Mali pair is CVE-2021-28663 and CVE-2021-28664.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD: status Analyzed; [email protected] Primary CVSS 3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H and Primary CVSS 2.0 9.0; CISA-ADP Secondary 8.8 same vector; CWE-416; CPE Bifrost r16p0 and Valhall r19p0 before r30p0, Midgard r28p0 before r31p0; published 2021-05-24; read 2026-11-25. — NVD
  • CVE record (CNA MITRE, published 2021-05-24): access to freed memory, information disclosure or root privilege escalation; Bifrost r16p0 through r29p0 before r30p0, Valhall r19p0 through r29p0 before r30p0, Midgard r28p0 through r30p0. — CVE.org
  • Android Security Bulletin July 2023: indications that CVE-2021-29256 may be under limited, targeted exploitation; A-283489460, High, Mali, Arm components, 2023-07-05 security patch level. — Android Security Bulletin
  • CISA KEV catalog 2026.11.24: dateAdded 2023-07-07, due 2023-07-28, knownRansomwareCampaignUse Unknown, CWE-416; required action: Apply updates per vendor instructions or discontinue use of the product if updates are unavailable. Checked 2026-11-25. — CISA KEV
  • EPSS 0.02938, percentile 0.87355, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2021-29256 (CNA: MITRE)
  3. Android Security Bulletin, July 2023
  4. CISA KEV
  5. FIRST EPSS

Frequently asked questions

Which Arm Mali driver versions fix CVE-2021-29256?

Bifrost and Valhall drivers are fixed in r30p0; affected ranges are Bifrost r16p0 through r29p0 and Valhall r19p0 through r29p0. Midgard r28p0 through r30p0 is affected, and NVD treats r31p0 as the first unaffected Midgard release (per the CVE record and NVD).

Which Android patch level fixes CVE-2021-29256?

Security patch level 2023-07-05. The July 2023 Android Security Bulletin lists it under Arm components and notes signs of limited, targeted exploitation (per the Android Security Bulletin).

Why did a 2021 Mali bug reach Android in 2023?

The CVE was published in May 2021 with r30p0 as the fixed driver, but Android only listed it in the July 2023 bulletin. Device kernels carry the Mali driver as vendor code, so the fix depends on each device maker pulling the new release (per the CVE record and the Android Security Bulletin).

Is CVE-2021-29256 exploited in the wild?

Yes. CISA added it to the KEV catalog on 2023-07-07, and it is listed as of 2026-11-25 (catalog version 2026.11.24) with ransomware use marked Unknown. FIRST EPSS gives it 0.02938 in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS).