Review reviewHigh

CVE-2025-40096

Linux

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(): ... fo...

CVSS
7.8
EPSS
0.14%
4.12% percentile
CISA KEV
Not listed
Published
2025.10.30
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.14%
Technical severityCVSS 7.8

Vulnerability overview

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(): ... fo...

Affected product and versions

Product
Linux
Affected versions
>= 963d0b3569354230f6e2c36a286ef270a8901878 < 4c38a63ae12ecc9370a7678077bde2d61aa80e9c, >= 963d0b3569354230f6e2c36a286ef270a8901878 < 57239762aa90ad768dac055021f27705dae73344, >= 963d0b3569354230f6e2c36a286ef270a8901878 < e5e3eb2aff92994ee81ce633f1c4e73bd4b87e11, >= 963d0b3569354230f6e2c36a286ef270a8901878 < fdfb47e85af1e11ec822c82739dde2dd8dff5115, >= 963d0b3569354230f6e2c36a286ef270a8901878 < 5801e65206b065b0b2af032f7f1eef222aa2fd83, >= 5.16
Fixed versions
No verified fixed-version field is available yet

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE
Not available
CVE-2025-40096 — Linux | SECUFOCUS NOW