Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40096

published high CVSS 3.1 · 7.8

drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies

Published
30 Oct 2025, 09:48:03 UTC
Updated
05 Aug 2026, 12:07:47 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux963d0b3569354230f6e2c36a286ef270a8901878 to < 4c38a63ae12ecc9370a7678077bde2d61aa80e9c · 963d0b3569354230f6e2c36a286ef270a8901878 to < 57239762aa90ad768dac055021f27705dae73344 · 963d0b3569354230f6e2c36a286ef270a8901878 to < e5e3eb2aff92994ee81ce633f1c4e73bd4b87e11 · 963d0b3569354230f6e2c36a286ef270a8901878 to < fdfb47e85af1e11ec822c82739dde2dd8dff5115 · 963d0b3569354230f6e2c36a286ef270a8901878 to < 5801e65206b065b0b2af032f7f1eef222aa2fd83 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 6.1.158 through 6.1.* (unaffected · semver) · 6.6.114 through 6.6.* (unaffected · semver) · 6.12.55 through 6.12.* (unaffected · semver) · 6.17.5 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-124.39.1.el10_1 ALSA-2026:3275
AlmaLinux 10 kernel-doc Advisory build 6.12.0-124.39.1.el10_1 ALSA-2026:3275
AlmaLinux 8 bpftool Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.94.1.rt7.435.el8_10 ALSA-2026:0760
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 perf Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.94.1.el8_10 ALSA-2026:0759
AlmaLinux 9 kernel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.45.1.el9_7 ALSA-2026:6153

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

55

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is reached only through GPU job-submission ioctls (MSM_GEM_SUBMIT, PANFROST_SUBMIT, AMDGPU_CS, xe/v3d/lima/etnaviv/pvr equivalents) on a local DRM render node. There is no network or remote-peer path into drm_sched_job_add_resv_dependencies(). AC:L - The double put fires on the xa_alloc() -ENOMEM path, which the attacker can steer by sustaining memory pressure and by submitting jobs with many BOs/fences to force many xarray node allocations. Failed attempts merely return -ENOMEM to userspace, so the ioctl can be retried in a tight loop until the allocation fails, making the trigger attacker-influenced and repeatable rather than a condition outside their control. PR:L - All calling ioctls are marked DRM_RENDER_ALLOW with no capability check, so an ordinary unprivileged process holding an fd on /dev/dri/renderD128 suffices — every Android app, every Chrome OS sandboxed GPU client, and any desktop user in the render/video group. No root or CAP_SYS_ADMIN is needed. UI:N - The attacker submits its own GPU jobs against its own buffer objects; no victim action, mount, or file open is required. Exploitation is fully self-contained in the attacking process. S:U - The corruption stays within the kernel's own memory and security authority — a standard local kernel memory-safety issue with no VM, IOMMU, or hypervisor boundary crossed. C:H - The extra dma_fence_put() frees a fence still referenced by the BO's dma_resv, the scheduler, and other jobs' dependency arrays, giving a use-after-free on a slab object (drm_sched_fence has its own kmem_cache). Reclaiming that memory with attacker-controlled data allows disclosure of kernel memory contents via the stale fence dereferences. I:H - The freed dma_fence is subsequently dereferenced through its ops table (->signaled, ->wait, ->release) and its dma_fence_cb callback list, both of which are function pointers in the freed allocation. Heap grooming of the reclaimed object therefore yields a write/control-flow-hijack primitive, i.e. potential privilege escalation. A:H - Even without successful grooming, the refcount underflow and premature free cause use-after-free dereferences in the GPU scheduler, producing an oops/panic or GPU-wide hang. Any kernel crash is High availability impact.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 963d0b3569354230f6e2c36a286ef270a8901878 to < 4c38a63ae12ecc9370a7678077bde2d61aa80e9c (affected · git)963d0b3569354230f6e2c36a286ef270a8901878 to < 57239762aa90ad768dac055021f27705dae73344 (affected · git)963d0b3569354230f6e2c36a286ef270a8901878 to < e5e3eb2aff92994ee81ce633f1c4e73bd4b87e11 (affected · git)963d0b3569354230f6e2c36a286ef270a8901878 to < fdfb47e85af1e11ec822c82739dde2dd8dff5115 (affected · git)963d0b3569354230f6e2c36a286ef270a8901878 to < 5801e65206b065b0b2af032f7f1eef222aa2fd83 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.16 (affected)0 to < 5.16 (unaffected · semver)6.1.158 through 6.1.* (unaffected · semver)6.6.114 through 6.6.* (unaffected · semver)6.12.55 through 6.12.* (unaffected · semver)6.17.5 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

2

Linux · cna

drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
20ca154b7f6a25476f9b58086fdb5c601c9220e8eac51ed39aab1c9861f93216
Ingested
23 Sep 2026, 08:48:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected