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

CVE-2025-38515
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.16 % · percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 27105db6c63a571b91d01e749d026105a1e63bcf < 549a9c78c3ea6807d0dc4162a4f5ba59f217d5a0 ; affected 27105db6c63a571b91d01e749d026105a1e63bcf < e62f51d0ec8a9baf324caf9a564f8e318d36a551 ; affected 27105db6c63a571b91d01e749d026105a1e63bcf < ef841f8e4e1ff67817ca899bedc5ebb00847c0a7 ; affected 27105db6c63a571b91d01e749d026105a1e63bcf < f9a4f28a4fc4ee453a92a9abbe36e26224d17749 ; affected 27105db6c63a571b91d01e749d026105a1e63bcf < c64f5310530baf75328292f9b9f3f2961d185183 ; affected 27105db6c63a571b91d01e749d026105a1e63bcf < e2d6547dc8b9b332f9bc00875197287a6a4db65a
Linux · Linuxaffected 4.16 ; unaffected 0 < 4.16 ; unaffected 5.4.296 ≤ 5.4.* ; unaffected 5.10.240 ≤ 5.10.* ; unaffected 5.15.189 ≤ 5.15.* ; unaffected 6.1.146 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD