Security Advisory

CVE-2022-38181: Arm Mali GPU Driver Use-After-Free

Last updated:
  • CVE-2022-38181

CVE-2022-38181 is a use-after-free in the Arm Mali GPU kernel driver that lets an unprivileged app access freed memory; GitHub Security Lab used it to root a Pixel 6. Arm released driver r40p0 to fix it. NVD scores it 8.8, CISA lists it in KEV, and Android ships the fix at security patch level 2023-04-05.

Vulnerability summary

CVSS base score

8.8

High severity

EPSS score (FIRST)

18.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2022-38181 · Source: NVD

Affected components

ComponentCPEVersion range
Arm Bifrost GPU Kernel Drivercpe:2.3:a:arm:bifrost_gpu_kernel_driver:*:*:*:*:*:*:*:*r0p0 through r38p1, and r39p0 (CVE record, NVD); r40p0 released to address it (GitHub Security Lab)
Arm Valhall GPU Kernel Drivercpe:2.3:a:arm:valhall_gpu_kernel_driver:*:*:*:*:*:*:*:*r19p0 through r38p1, and r39p0 (CVE record, NVD); r40p0 released to address it (GitHub Security Lab)
Arm Midgard GPU Kernel Drivercpe:2.3:a:arm:midgard_gpu_kernel_driver:*:*:*:*:*:*:*:*r4p0 through r32p0 (CVE record); NVD CPE r4p0 up to and including r31p0; no fixed Midgard release named
Android devices with an Arm Mali GPU (reported on Google Pixel 6 and Pixel 6 Pro)—Security patch level before 2023-04-05; fixed at 2023-04-05 or later (Android Security Bulletin April 2023, A-259695958)

What does this mean for affected devices?

CVE-2022-38181 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 2022-10-25, says the driver "allows unprivileged users to access freed memory because GPU memory operations are mishandled" (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, with CWE-416; CISA's ADP container gives the same 8.8, and the record carries no CNA score (NVD).

Man Yue Mo of GitHub Security Lab found it as GHSL-2022-054, a use-after-free in the driver's evictable memory handling, tested on a Pixel 6. Their timeline says they reported it to Android on 2022-07-12 with an exploit that rooted a Pixel 6 from an untrusted app, that Arm agreed it was a security vulnerability, and that "the Arm driver version r40p0 was released to address the issue" on 2022-10-07.

Which Mali driver releases are affected?

The record lists Bifrost r0p0 through r38p1 and r39p0, Valhall r19p0 through r38p1 and r39p0, and Midgard r4p0 through r32p0. NVD's CPEs match for Bifrost and Valhall, but its Midgard range stops at r31p0, one release short of the CVE text; treat r32p0 as affected. Neither source names a fixed Midgard release. CISA's KEV entry points to Arm's Mali GPU Driver Vulnerabilities page as the vendor reference.

How do you fix CVE-2022-38181?

Owners get the fix through device firmware. The Android Security Bulletin for April 2023 says there are indications that CVE-2022-38181 "may be under limited, targeted exploitation" and lists it (A-259695958, severity High as assessed by Arm) under Arm components at the 2023-04-05 patch level, so a device at 2023-04-05 or later includes it. Device makers who build their own kernels use Bifrost or Valhall r40p0 or later. CISA's required action is to apply updates per vendor instructions. The memory corruption fix guide covers the bug class, and the Linux kernel CVE guide covers tracking vendor kernel drivers.

Is CVE-2022-38181 exploited?

Yes. CISA added it to the KEV catalog on 2023-03-30 as "Arm Mali GPU Kernel Driver Use-After-Free Vulnerability", due 2023-04-20, 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.18461, the 97th percentile, in the 2026-11-24 dataset. CISA added the Mali write-access flaw CVE-2022-22706 the same day; a later Mali use-after-free in KEV is CVE-2023-4211.

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; CISA-ADP Secondary 8.8 same vector; CWE-416; CPE Bifrost r0p0 to r38p1 inclusive plus r39p0, Valhall r19p0 to r38p1 inclusive plus r39p0, Midgard r4p0 to r31p0 inclusive; published 2022-10-25; read 2026-11-25. — NVD
  • CVE record (CNA MITRE, published 2022-10-25): unprivileged access to freed memory; Bifrost r0p0 through r38p1 and r39p0, Valhall r19p0 through r38p1 and r39p0, Midgard r4p0 through r32p0. — CVE.org
  • GitHub Security Lab GHSL-2022-054 (Man Yue Mo): use-after-free in evictable memory, tested on Pixel 6, affects Pixel 6 and Pixel 6 Pro; reported 2022-07-12; CVE assigned 2022-10-03; Arm driver r40p0 released 2022-10-07 to address the issue. — GitHub Security Lab
  • Android Security Bulletin April 2023: indications that CVE-2022-38181 may be under limited, targeted exploitation; A-259695958, High, Mali, Arm components, 2023-04-05 security patch level. — Android Security Bulletin
  • CISA KEV catalog 2026.11.24: dateAdded 2023-03-30, due 2023-04-20, knownRansomwareCampaignUse Unknown, CWE-416; required action: Apply updates per vendor instructions. Checked 2026-11-25. — CISA KEV
  • EPSS 0.18461, percentile 0.97297, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. CVE.org record CVE-2022-38181 (CNA: MITRE)
  3. GitHub Security Lab GHSL-2022-054: Use-after-free in Arm Mali GPU driver
  4. Android Security Bulletin, April 2023
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which Arm Mali driver release fixes CVE-2022-38181?

GitHub Security Lab reports that Arm released driver r40p0 on 2022-10-07 to address it. Affected releases are Bifrost r0p0 through r38p1 and r39p0, Valhall r19p0 through r38p1 and r39p0, and Midgard r4p0 through r32p0 (per GitHub Security Lab and the CVE record).

Which Android patch level fixes CVE-2022-38181?

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

Which devices were shown to be affected by CVE-2022-38181?

GitHub Security Lab tested it on a Google Pixel 6 and says it affects the Pixel 6 and Pixel 6 Pro; any device using an affected Mali driver release is in range (per GitHub Security Lab and the CVE record).

Is CVE-2022-38181 exploited in the wild?

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