# CVE-2025-38515: drm/sched: Increment job count before swapping tail spsc queue

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 10% of CVEs (2026-11-30)
- Published: 2025-08-16T10:55:02.173Z
- Modified: 2026-06-17T09:17:01.497Z
- Assigned by: Linux

## Description

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

drm/sched: Increment job count before swapping tail spsc queue

A small race exists between spsc_queue_push and the run-job worker, in
which spsc_queue_push may return not-first while the run-job worker has
already idled due to the job count being zero. If this race occurs, job
scheduling stops, leading to hangs while waiting on the job’s DMA
fences.

Seal this race by incrementing the job count before appending to the
SPSC queue.

This race was observed on a drm-tip 6.16-rc1 build with the Xe driver in
an SVM test case.

(As written by CVE List.)

## Affected

- Linux Linux: from 27105db6c63a571b91d01e749d026105a1e63bcf before 549a9c78c3ea6807d0dc4162a4f5ba59f217d5a0; from 27105db6c63a571b91d01e749d026105a1e63bcf before e62f51d0ec8a9baf324caf9a564f8e318d36a551; from 27105db6c63a571b91d01e749d026105a1e63bcf before ef841f8e4e1ff67817ca899bedc5ebb00847c0a7; from 27105db6c63a571b91d01e749d026105a1e63bcf before f9a4f28a4fc4ee453a92a9abbe36e26224d17749; from 27105db6c63a571b91d01e749d026105a1e63bcf before c64f5310530baf75328292f9b9f3f2961d185183; from 27105db6c63a571b91d01e749d026105a1e63bcf before e2d6547dc8b9b332f9bc00875197287a6a4db65a; from 27105db6c63a571b91d01e749d026105a1e63bcf before ef58a95457466849fa7b31fd3953801a5af0f58b; from 27105db6c63a571b91d01e749d026105a1e63bcf before 8af39ec5cf2be522c8eb43a3d8005ed59e4daaee; 4.16 (not affected: before 4.16; from 5.4.296 up to 5.4.*; from 5.10.240 up to 5.10.*; from 5.15.189 up to 5.15.*; from 6.1.146 up to 6.1.*; from 6.6.99 up to 6.6.*; from 6.12.39 up to 6.12.*; from 6.15.7 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 4.16 before 5.4.296; from 5.5 before 5.10.240; from 5.11 before 5.15.189; from 5.16 before 6.1.146; from 6.2 before 6.6.99; from 6.7 before 6.12.39; from 6.13 before 6.15.7; 6.16
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/549a9c78c3ea6807d0dc4162a4f5ba59f217d5a0> (patch)
- <https://git.kernel.org/stable/c/e62f51d0ec8a9baf324caf9a564f8e318d36a551> (patch)
- <https://git.kernel.org/stable/c/ef841f8e4e1ff67817ca899bedc5ebb00847c0a7> (patch)
- <https://git.kernel.org/stable/c/f9a4f28a4fc4ee453a92a9abbe36e26224d17749> (patch)
- <https://git.kernel.org/stable/c/c64f5310530baf75328292f9b9f3f2961d185183> (patch)
- <https://git.kernel.org/stable/c/e2d6547dc8b9b332f9bc00875197287a6a4db65a> (patch)
- <https://git.kernel.org/stable/c/ef58a95457466849fa7b31fd3953801a5af0f58b> (patch)
- <https://git.kernel.org/stable/c/8af39ec5cf2be522c8eb43a3d8005ed59e4daaee> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-38515](https://www.cve.org/CVERecord?id=CVE-2025-38515), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38515](https://nvd.nist.gov/vuln/detail/CVE-2025-38515), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38515 · Whole record: https://cve.day/CVE-2025-38515.json · Rebuilt by cve.day 2026-11-25T22:59:02.620Z
