CVE-2025-38515

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

State
Published
Severity
Not scored
Published
Aug 16, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before 549a9c78c3ea6807d0dc4162a4f5ba59f217d5a0Affected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before e62f51d0ec8a9baf324caf9a564f8e318d36a551Affected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before ef841f8e4e1ff67817ca899bedc5ebb00847c0a7Affected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before f9a4f28a4fc4ee453a92a9abbe36e26224d17749Affected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before c64f5310530baf75328292f9b9f3f2961d185183Affected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before e2d6547dc8b9b332f9bc00875197287a6a4db65aAffected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before ef58a95457466849fa7b31fd3953801a5af0f58bAffected
  • 27105db6c63a571b91d01e749d026105a1e63bcf to before 8af39ec5cf2be522c8eb43a3d8005ed59e4daaeeAffected
LinuxLinux
  • 4.16Affected
  • before 4.16Not affected
  • 5.4.296 through 5.4.*Not affected
  • 5.10.240 through 5.10.*Not affected
  • 5.15.189 through 5.15.*Not affected
  • 6.1.146 through 6.1.*Not affected
  • 6.6.99 through 6.6.*Not affected
  • 6.12.39 through 6.12.*Not affected
  • 6.15.7 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.