drm/exec: don't immediately add prelocked obj to array of locked objs (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.21 % · percentile 11 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: drm/exec: don't immediately add prelocked obj to array of locked objs When a contention is detected the drm_exec object grabs a reference to the contended object, unlocks all other objects and pre-locks the contended one before anything else. The problem is that it is possible that this pre-locked object was about to be destroyed and drm_exec is now holding the last reference to it. So we never actually see this pre-locked object again to be explicitly locked and so also never reserve a slot for a dma_fence object on it. Should the driver now use drm_exec_for_each_locked_object() to add a new fence to all locked objects we eventually see a warning or even a BUG_ON() to prevent random memory corruption. Fix this by keeping the prelocked object out of the array of locked objs until it was explicitly mentioned by the driver again. If the prelocked object is never mentioned again by the driver just unlock and drop the reference at the end of the locking loop.
References
- https://git.kernel.org/stable/c/74b4d2370a9e2b77247063dfa05f452766102676
- https://git.kernel.org/stable/c/9dd91a22f076a4d19f14d82a5ab790c6bbaa073e
- https://git.kernel.org/stable/c/96d9996e5dbcfabed052c0d9377a382c95fed607
- https://git.kernel.org/stable/c/7a10cd79c4d9a90334fece32fef3a8e5b1a9727b
- https://git.kernel.org/stable/c/26401a4999f1596a515b2e704e7066ac09306488
European references
- ENISA EUVD · EUVD-2026-111899
- GCVE · GCVE-0-2026-99147
CERT-FR advisories
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1473 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 09593216bff15866f95c8ad406cb7fdcec1ee40a < 74b4d2370a9e2b77247063dfa05f452766102676 affected : ≥ 09593216bff15866f95c8ad406cb7fdcec1ee40a < 9dd91a22f076a4d19f14d82a5ab790c6bbaa073e affected : ≥ 09593216bff15866f95c8ad406cb7fdcec1ee40a < 96d9996e5dbcfabed052c0d9377a382c95fed607 affected : ≥ 09593216bff15866f95c8ad406cb7fdcec1ee40a < 7a10cd79c4d9a90334fece32fef3a8e5b1a9727b affected : ≥ 09593216bff15866f95c8ad406cb7fdcec1ee40a < 26401a4999f1596a515b2e704e7066ac09306488 Other versions : unaffected |
| Linux · Linux | affected : 6.6 unaffected : ≥ 0 < 6.6 unaffected : ≥ 6.6.161 ≤ 6.6.* unaffected : ≥ 6.12.115 ≤ 6.12.* unaffected : ≥ 6.18.59 ≤ 6.18.* unaffected : ≥ 7.2.13 ≤ 7.2.* unaffected : ≥ 7.3 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |