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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-16 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-38515, DEBIAN-CVE-2025-38515
- Record: https://cvemate.com/vulnerability/CVE-2025-38515 · JSON: https://cvemate.com/vulnerability/CVE-2025-38515/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.19%, percentile 9.042%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 148)

- debian linux (Debian): \< 6.1.147-1 \| \< 6.12.41-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-156.166 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1092.99 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1092.99~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1017.17~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1092.99+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1096.105 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 46)

- <https://git.kernel.org/stable/c/549a9c78c3ea6807d0dc4162a4f5ba59f217d5a0>
- <https://git.kernel.org/stable/c/e62f51d0ec8a9baf324caf9a564f8e318d36a551>
- <https://git.kernel.org/stable/c/ef841f8e4e1ff67817ca899bedc5ebb00847c0a7>
- <https://git.kernel.org/stable/c/f9a4f28a4fc4ee453a92a9abbe36e26224d17749>
- <https://git.kernel.org/stable/c/c64f5310530baf75328292f9b9f3f2961d185183>
- <https://git.kernel.org/stable/c/e2d6547dc8b9b332f9bc00875197287a6a4db65a>
- <https://git.kernel.org/stable/c/ef58a95457466849fa7b31fd3953801a5af0f58b>
- <https://git.kernel.org/stable/c/8af39ec5cf2be522c8eb43a3d8005ed59e4daaee>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2025-38515>
- <https://www.cve.org/CVERecord?id=CVE-2025-38515>
- <https://git.kernel.org/linus/8af39ec5cf2be522c8eb43a3d8005ed59e4daaee>
- <https://ubuntu.com/security/notices/USN-7774-1>
- <https://ubuntu.com/security/notices/USN-7774-2>
- <https://ubuntu.com/security/notices/USN-7774-3>
- <https://ubuntu.com/security/notices/USN-7775-1>
- <https://ubuntu.com/security/notices/USN-7776-1>
- <https://ubuntu.com/security/notices/USN-7775-2>
- <https://ubuntu.com/security/notices/USN-7775-3>

---

Data as of 2026-12-06T04:48:44.553Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
