Skip to main content

Linux Kernel CVE-2025-40336

HIGH
2025-12-09 416baaa9-dc9f-4396-8d5f-8c081fb06d67
8.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access with GPU device permissions
  2. Delivery
    Create misaligned HMM/userptr SVM range over huge page
  3. Exploit
    Trigger hmm_pfn_to_map_order() over-sized mapping
  4. Execution
    Map memory outside intended range
  5. Impact
    Read or corrupt adjacent kernel/process memory

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to the affected host (CVSS AV:L) and low-level privileges sufficient to reach the GPU DRM/SVM interface (PR:L) - i.e. an account permitted to open the DRM render node and issue GPU userptr/SVM operations. The specific technical prerequisite drawn from the description is the ability to create an HMM range that only partially covers a huge page (such as 2MB), triggering the mis-sized mapping order; systems without the drm/gpusvm code or without an Intel Xe GPU exposing this SVM/userptr path are not exploitable. Limiting factors: no remote exploitation, no unauthenticated path, dependency on very recent kernels containing gpusvm, and the need for GPU device access - all of which substantially narrow the realistic attacker population despite the high CVSS score.

Impact

The supplied CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, score 8.8) describes a locally-exploitable, low-privilege flaw with a scope change and full CIA impact - the scope change reflecting that the kernel may map memory belonging to another security context. That severity contrasts sharply with the low exploitation signals: EPSS is only 0.19% (9th percentile), the vulnerability is NOT on the CISA KEV list, and no public exploit or POC is referenced. The vector's own AV:L confirms this is not remotely reachable, which meaningfully caps real-world exposure to scenarios where an attacker already has local code execution and access to the GPU/DRM device. The C:H/I:H/A:H rating appears somewhat optimistic for a race/boundary condition whose observable effect is mapping adjacent memory - reliable full-integrity control is uncertain and would depend on heap/page layout. Net: a legitimately serious local kernel bug worth patching on affected systems, but not an urgent, mass-exploited priority; treat as a defense-in-depth kernel hardening fix rather than an emergency.

Exploit ScenarioDerived

A local user with access to the GPU DRM device sets up a GPU SVM/userptr mapping whose HMM range is deliberately misaligned so it only partially overlaps a 2MB huge page, causing the driver to map physical pages beyond the requested range. By then reading or writing through the GPU mapping, the attacker can access adjacent memory not belonging to their process, potentially leaking kernel or other-process data or corrupting it. No public POC or exploit is referenced, and the local-only, low-complexity vector means the attacker must already have on-host access and GPU device permissions.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege-escalation and memory-disclosure flaw in the Linux kernel's DRM GPU SVM (Shared Virtual Memory) subsystem, where incorrect use of hmm_pfn_to_map_order() mishandles an HMM range that only partially covers a huge page (e.g. 2MB), causing the driver to map physical memory outside the intended range - memory that may not even belong to the faulting process's address space. Affecting recent kernels carrying the drm/gpusvm code (associated with the Intel Xe GPU driver's userptr/SVM path), a local user with GPU access can trigger cross-boundary mappings leading to information disclosure or memory corruption. There is no public exploit identified at time of analysis, and EPSS is low at 0.19% (9th percentile).

RemediationAI

Update to a Linux kernel stable release that incorporates the gpusvm fix; the upstream fix is available as the stable-tree commits 08e9fd78ba1b9e95141181c69cc51795c9888157 and c50729c68aaf93611c855752b00e49ce1fdd1558 (https://git.kernel.org/stable/c/08e9fd78ba1b9e95141181c69cc51795c9888157 and https://git.kernel.org/stable/c/c50729c68aaf93611c855752b00e49ce1fdd1558), but a specific tagged patched release version is not independently confirmed from the provided data, so consume the fix through your distribution's kernel update once it lands. As a compensating control until patched, restrict local access to the GPU by tightening permissions on the DRM render/device nodes (e.g. /dev/dri/renderD*) to trusted users and groups only, which blocks the unprivileged local trigger path at the cost of denying GPU/compute access to restricted users; on systems that do not require Intel Xe GPU SVM/userptr functionality, avoid loading or exposing the affected driver. Because the vector is local (AV:L), standard mitigations against untrusted local users - minimizing multi-tenant local shell access and enforcing least privilege - materially reduce exposure.

Affected ProductsAI

The Linux kernel is affected, specifically builds that include the drm/gpusvm subsystem (the newer GPU Shared Virtual Memory code tied to the Intel Xe driver's userptr/SVM path); this is bleeding-edge/recent-kernel code rather than legacy trees. No CPE strings were provided in the input and NVD did not enumerate exact affected version ranges, so precise vulnerable versions are not independently confirmed - affected commits are tracked in the kernel stable tree. The fix is recorded in the stable commits at https://git.kernel.org/stable/c/08e9fd78ba1b9e95141181c69cc51795c9888157 and https://git.kernel.org/stable/c/c50729c68aaf93611c855752b00e49ce1fdd1558.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the Direct Rendering Manager GPU SVM layer (drm/gpusvm), which lets a GPU share a unified virtual address space with a process using HMM (Heterogeneous Memory Management). hmm_pfn_to_map_order() reports the mapping order (page size, e.g. order 9 = 2MB huge page) for a PFN so the driver can build large device mappings efficiently. The bug is a boundary/alignment defect: when an HMM range only partially overlaps a huge page, the returned order was applied without clamping to the range, so the driver could construct a mapping extending beyond the requested range into memory not mapped by the process's mm_struct. The fix aligns the logic with the Intel Xe userptr code (which will later consume gpusvm directly) and switches fls to ilog2 for correct order computation. No CWE was assigned, but the root-cause class is out-of-bounds mapping/access (CWE-125/CWE-787 family) arising from improper enforcement of memory range bounds.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 8.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Local GPU-device access needed so AV:L/PR:L; low complexity to misalign a range; scope change (S:C) as memory outside the mm is mapped, giving high confidentiality/integrity/availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L
SUSE 6.5 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H
Red Hat 6.5 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

drm/gpusvm: fix hmm_pfn_to_map_order() usage

Handle the case where the hmm range partially covers a huge page (like 2M), otherwise we can potentially end up doing something nasty like mapping memory which is outside the range, and maybe not even mapped by the mm. Fix is based on the xe userptr code, which in a future patch will directly use gpusvm, so needs alignment here.

v2:

  • Add kernel-doc (Matt B)
  • s/fls/ilog2/ (Thomas)

Executive ViewAI

Why It Matters

The Linux kernel DRM GPU SVM subsystem contains a local privilege escalation and memory disclosure vulnerability (CVE-2025-40336, CVSS 8.8) affecting systems running recent kernels with Intel Xe GPU driver support. Local users with GPU device access can trigger cross-boundary memory mappings, exposing sensitive data or corrupting memory in processes they do not own. Organizations running GPU-accelerated workloads face risk of unauthorized information disclosure and system compromise from unprivileged users.

Business Impact: High
Compensating Controls

Restrict GPU device access through Linux user groups and udev rules to only essential users and applications; disable DRM/GPUSVM kernel module support on systems where GPU workloads are not required; isolate GPU-enabled systems on dedicated network segments where feasible; implement real-time monitoring and alerting for GPU device access and kernel memory errors; apply principle of least privilege to GPU-enabled workloads and containers.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
niche new drm/gpusvm code, only recent kernels with Intel Xe GPUs
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy