Skip to main content

Linux Kernel CVE-2025-40096

HIGH
2025-10-30 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.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
    Local user opens DRM render node
  2. Delivery
    Submit GPU jobs under memory pressure
  3. Exploit
    xarray expansion fails on error path
  4. Execution
    Double free of dma_fence reference
  5. Impact
    Kernel memory corruption / DoS

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access with the ability to submit jobs to the DRM GPU scheduler - an authenticated local user with a render node open on a driver that uses drm/sched (per AV:L, PR:L, UI:N). The specific triggering condition is that drm_sched_job_add_dependency() must fail because the dependency xarray fails to expand (a memory allocation/expansion failure), which then reaches the double free on the caller's error path. This allocation-failure requirement is the key limiting factor: the vulnerable branch is an error path not exercised in normal operation, so the attacker typically must induce memory pressure or resource exhaustion to reach it, and it is not remotely reachable.

Impact

The CVSS 3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (7.8 High) indicates a local, low-complexity attack requiring low privileges and no user interaction, with high confidentiality, integrity and availability impact - consistent with kernel memory corruption reachable from an unprivileged-but-authenticated local context that can submit GPU jobs. Real-world risk signals are more moderate: EPSS is only 0.19% (9th percentile), there is no KEV listing, and no public exploit is identified. Importantly, the double free is only reached when the xarray allocation/expansion fails - an error/low-memory edge condition that is not trivially attacker-controlled - which raises practical exploitation complexity well beyond the AC:L rating. There is also a signal conflict: the vendor tag labels this 'Information Disclosure' while the CVSS claims C:H/I:H/A:H; realistically this is far more likely a DoS/corruption primitive than a reliable info-leak or privesc - verify the achievable impact with the maintainers. Overall this is a routine hardening kernel fix to roll out through normal stable-update cycles, not an urgent field emergency.

Exploit ScenarioDerived

A logged-in local user with access to a GPU render node submits crafted scheduler jobs while the system is under memory pressure so that the internal xarray fails to expand, driving drm_sched_job_add_resv_dependencies() down its error path and double-freeing a dma_fence. The resulting kernel memory corruption crashes the machine (DoS) and, with careful heap grooming, could potentially be steered toward escalation. No public exploit code has been identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 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 memory corruption in the Linux kernel's DRM GPU scheduler (drm/sched) stems from a double free in drm_sched_job_add_resv_dependencies(), where a dma_fence reference that drm_sched_job_add_dependency() already consumed on its failure path is released a second time when the backing xarray fails to expand. Any local user able to submit GPU jobs on an affected kernel can trigger the flaw, leading to kernel memory corruption and denial of service. There is no public exploit identified at time of analysis, EPSS is low (0.19%), and it is not listed in CISA KEV.

RemediationAI

Upstream fix available (commits, not a tagged release); a released patched version number is not independently confirmed from the provided data. Update to a stable kernel that includes the fix commit for your branch (4c38a63ae12e, 57239762aa90, 5801e65206b0, e5e3eb2aff92, or fdfb47e85af1 via git.kernel.org/stable), or install your distribution's kernel update once the backport lands, then reboot into the patched kernel. As this is a kernel graphics-scheduler defect there is no clean runtime toggle; if immediate patching is impossible, the practical compensating control is to restrict local access to GPU/DRM job submission by limiting which users can open render nodes (/dev/dri/renderD*), accepting the trade-off that this breaks GPU-accelerated workloads for those users.

Affected ProductsAI

The Linux kernel DRM GPU scheduler (drm/sched) is affected across all versions from the introduction of dependency tracking (commit ebd5f74255b9) onward, spanning multiple maintained stable branches. No specific version numbers or CPE strings are provided in the feed; affected and fixed points are identified only by stable-tree commit hashes. Fixes are published at git.kernel.org: 4c38a63ae12ecc9370a7678077bde2d61aa80e9c, 57239762aa90ad768dac055021f27705dae73344, 5801e65206b065b0b2af032f7f1eef222aa2fd83, e5e3eb2aff92994ee81ce633f1c4e73bd4b87e11 and fdfb47e85af1e11ec822c82739dde2dd8dff5115, each a per-branch backport.

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 bug lives in the DRM (Direct Rendering Manager) GPU scheduler shared by kernel graphics drivers such as amdgpu. Jobs submitted to the scheduler track dma_fence dependencies stored in an xarray. The helper drm_sched_job_add_dependency() is designed to consume (store or drop) the passed fence reference on both success and failure; when the xarray fails to grow, the caller in drm_sched_job_add_resv_dependencies() also called dma_fence_put() on that same fence, double-freeing a reference-counted object. This is a classic CWE-415 (Double Free) memory-management defect. The description traces the flaw to commit ebd5f74255b9 (which introduced dependency tracking), with intermediate partial fixes (9c2ba265352a, 4eaf02d6076c, 963d0b356935) that relocated rather than eliminated the double free. CWE is reported as N/A in the feed, but the root cause is unambiguously a double free of a dma_fence.

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 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.3 MEDIUM

Local authenticated GPU-job submission gives AV:L/PR:L; reaching the double free needs an induced allocation failure so AC:H; impact is memory corruption/DoS not info-leak, hence C:N, I:H, A:H.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.8 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
Red Hat 7.0 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
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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

drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies

When adding dependencies with drm_sched_job_add_dependency(), that function consumes the fence reference both on success and failure, so in the latter case the dma_fence_put() on the error path (xarray failed to expand) is a double free.

Interestingly this bug appears to have been present ever since commit ebd5f74255b9 ("drm/sched: Add dependency tracking"), since the code back then looked like this:

drm_sched_job_add_implicit_dependencies(): ... for (i = 0; i < fence_count; i++) { ret = drm_sched_job_add_dependency(job, fences[i]); if (ret) break; }

for (; i < fence_count; i++) dma_fence_put(fences[i]);

Which means for the failing 'i' the dma_fence_put was already a double free. Possibly there were no users at that time, or the test cases were insufficient to hit it.

The bug was then only noticed and fixed after commit 9c2ba265352a ("drm/scheduler: use new iterator in drm_sched_job_add_implicit_dependencies v2") landed, with its fixup of commit 4eaf02d6076c ("drm/scheduler: fix drm_sched_job_add_implicit_dependencies").

At that point it was a slightly different flavour of a double free, which commit 963d0b356935 ("drm/scheduler: fix drm_sched_job_add_implicit_dependencies harder") noticed and attempted to fix.

But it only moved the double free from happening inside the drm_sched_job_add_dependency(), when releasing the reference not yet obtained, to the caller, when releasing the reference already released by the former in the failure case.

As such it is not easy to identify the right target for the fixes tag so lets keep it simple and just continue the chain.

While fixing we also improve the comment and explain the reason for taking the reference and not dropping it.

Executive ViewAI

Why It Matters

CVE-2025-40096 is a local memory corruption vulnerability in the Linux kernel's DRM GPU scheduler that enables denial of service attacks through kernel memory corruption when exploited by local users with GPU job submission capabilities. Organizations operating Linux systems with GPU hardware or compute resources-including development workstations, shared GPU clusters, and cloud compute instances-face availability risk if untrusted local users can access GPU job submission. While no public exploit currently exists and active exploitation has not been observed, the vulnerability's residence in core kernel code and the absence of a vendor patch create a persistent threat to organizations dependent on GPU infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement interim mitigations: enforce strict access control policies to restrict GPU job submission to authenticated, authorized users only; disable DRM GPU scheduler on systems where GPU support is not required; isolate GPU compute workloads in containers with restricted user namespaces; monitor kernel system logs for drm_sched errors and memory corruption events; implement authentication requirements for all GPU resource access; apply rate limiting and input validation to GPU job submission; segment untrusted local users from systems with GPU capabilities.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
DRM scheduler ships in virtually all Linux GPU deployments
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 Yes
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

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
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
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.6.17.8.134 Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.65 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.88 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.105 Affected

References

Advisories & patches
ADVISORY https://access.redhat.com/errata/RHSA-2026:0759 ADVISORY https://access.redhat.com/errata/RHSA-2026:0760 ADVISORY https://access.redhat.com/errata/RHSA-2026:1879 ADVISORY https://access.redhat.com/errata/RHSA-2026:2535 ADVISORY https://access.redhat.com/errata/RHSA-2026:2560 ADVISORY https://access.redhat.com/errata/RHSA-2026:2583 ADVISORY https://access.redhat.com/errata/RHSA-2026:3275 ADVISORY https://access.redhat.com/errata/RHSA-2026:6153 ADVISORY https://access.redhat.com/errata/RHSA-2026:6164 ADVISORY https://access.redhat.com/errata/RHSA-2026:6193 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21040/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21052/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21064/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21147/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21180/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4128/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4132/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4140/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4141/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4301/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20317/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20333/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20561/ REF https://git.kernel.org/stable/c/4c38a63ae12ecc9370a7678077bde2d61aa80e9c REF https://git.kernel.org/stable/c/57239762aa90ad768dac055021f27705dae73344 REF https://git.kernel.org/stable/c/5801e65206b065b0b2af032f7f1eef222aa2fd83 REF https://git.kernel.org/stable/c/e5e3eb2aff92994ee81ce633f1c4e73bd4b87e11 REF https://git.kernel.org/stable/c/fdfb47e85af1e11ec822c82739dde2dd8dff5115

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