CVE-2025-40276
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40276 is a vulnerability in the Linux kernel's drm/panthor GPU driver subsystem, where shmem (shared memory) writes are not flushed before mapping buffers as CPU-uncached. The shmem layer zeroes new pages using cached mappings, and without a CPU cache flush, dirty cachelines may be left behind, leading to potential data leaks and/or asynchronous buffer corruption when those cachelines are evicted. The vulnerability was published on December 6, 2025, and affects Linux kernel versions from 6.10 up to (but not including) the patched commits. It is estimated as Medium severity with an EPSS score of 0.00018 (Red Hat CVE, ENISA EUVD).

Technical details

The root cause is a missing CPU cache flush in the drm/panthor driver (CWE-459: Incomplete Cleanup / improper cache coherency management). When the shmem layer allocates and zeroes new pages using cached CPU mappings, and those pages are subsequently mapped as CPU-uncached for GPU use, any dirty cachelines from the cached write phase may not be written back to physical memory before the uncached mapping is established. This cache coherency gap means the GPU (or other uncached readers) may observe stale or uninitialized data, and when the dirty cachelines are eventually evicted, they can overwrite data written through the uncached mapping, causing asynchronous buffer corruption. The fix involves explicitly flushing CPU caches after shmem writes and before establishing the uncached mapping, as reflected in the upstream kernel patches (ENISA EUVD, Kernel Patch 1, Kernel Patch 2).

Impact

Exploitation of this vulnerability can result in two primary consequences: information disclosure (data leaks from stale cachelines exposing memory contents to unauthorized GPU processes or users) and data integrity loss (asynchronous buffer corruption when dirty cachelines are evicted and overwrite GPU-visible memory). The impact is local in nature, affecting systems running the Panthor GPU driver (used with Arm Mali Valhall and later GPU architectures), and could allow a local user or process to read sensitive data from other processes' memory or cause unpredictable behavior in GPU workloads (Red Hat CVE, ENISA EUVD).

Mitigation and workarounds

The vulnerability is fixed in Linux kernel stable branches via upstream commits 7a12f9c96d06b145562f76ffb20369b4692f0911 (for one stable branch) and 576c930e5e7dcb937648490611a83f1bf0171048 (for another), with the fix also included in kernel 6.17.9 and 6.18. Users should update to a patched kernel version as soon as it is available for their distribution. Debian has addressed this in linux-signed-amd64 version 6.12.69+1, and SUSE has issued updates as well; Red Hat is tracking the issue. As a workaround where patching is not immediately possible, restricting local user access to GPU resources (e.g., limiting /dev/dri device access) can reduce exposure (Kernel Patch 1, Kernel Patch 2, Red Hat CVE).

Community reactions

The vulnerability received routine coverage from vulnerability tracking services and Linux distribution security teams, including Red Hat, Debian, SUSE, and Tenable (Nessus/Qualys detection plugins). No notable researcher commentary or significant social media discussion has been identified beyond standard CVE publication and scanner detection updates (Red Hat CVE, ENISA EUVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64564NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesAug 04, 2026
CVE-2026-64563NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesAug 04, 2026
CVE-2026-64562NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-5.15
NoYesAug 04, 2026
CVE-2026-64561NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesAug 04, 2026
CVE-2022-4994NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules
NoYesJul 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management