CVE-2025-40096: Double free in Linux kernel DRM scheduler dependency handling
- Vendor
- Linux
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.
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
References
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.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.