Skip to main content
Mallory
HighVulnerability

CVE-2025-40096: Double free in Linux kernel DRM scheduler dependency handling

Published Oct 30, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.24%9th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-40096CWE-415

CVE-2025-40096 is a double-free vulnerability in the Linux kernel DRM scheduler function drm_sched_job_add_resv_dependencies(). The dependency helper drm_sched_job_add_dependency() consumes a fence reference on both success and failure. When xarray expansion fails, the caller nevertheless invokes dma_fence_put() during error handling, releasing the already-consumed reference a second time. Earlier changes to drm_sched_job_add_implicit_dependencies() altered the erroneous reference handling without eliminating the underlying flaw. The double free can potentially cause kernel memory corruption and denial of service, with privilege escalation possible depending on exploitability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Triggering the faulty cleanup path can double free a kernel fence object, potentially causing kernel memory corruption or denial of service. Privilege escalation is a possible consequence, but a demonstrated exploitation method and its precise security effects are not established.

Mitigation

If you can’t patch tonight, do this now.

No specific workaround is documented. Until an updated kernel can be deployed, limit access by untrusted local users and workloads to systems exposing DRM scheduler functionality, and minimize use of affected GPU/DRM scheduling paths where operationally feasible.

Remediation

Patch, then assume compromise.

Install a vendor-supported kernel update containing the upstream DRM scheduler correction, which removes the redundant release of the fence reference after drm_sched_job_add_dependency() fails. Fixed package releases include RHEL 8.10 kernel 4.18.0-553.94.1.el8_10, RHEL 9.2 kernel 5.14.0-284.156.1.el9_2, RHEL 9.4 kernel 5.14.0-427.109.1.el9_4, RHEL 9.6 kernel 5.14.0-570.103.1.el9_6, and RHEL 10.0 kernel 6.12.0-55.65.1.el10_0. Use the update appropriate to the installed distribution and support channel, or a newer vendor-fixed release, and reboot into the updated kernel.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2025-40096 exploited in the wild?
As of Oct 3, 2026, Mallory has no reports of CVE-2025-40096 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-40096?
As of Oct 3, 2026, Mallory has found no public exploit for CVE-2025-40096.
Is there a patch for CVE-2025-40096?
Install a vendor-supported kernel update containing the upstream DRM scheduler correction, which removes the redundant release of the fence reference after drm_sched_job_add_dependency() fails. Fixed package releases include RHEL 8.10 kernel 4.18.0-553.94.1.el8_10, RHEL 9.2 kernel 5.14.0-284.156.1.el9_2, RHEL 9.4 kernel 5.14.0-427.109.1.el9_4, RHEL 9.6 kernel 5.14.0-570.103.1.el9_6, and RHEL 10.0 kernel 6.12.0-55.65.1.el10_0.
What products are affected by CVE-2025-40096?
Linux Kernel.
How severe is CVE-2025-40096?
CVE-2025-40096 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.24% (9th percentile) as of Oct 3, 2026.
Activity feed

Recent activity

23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+8 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.