io_uring/sqpoll: don't wait for the thread to exit (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.38 % · percentile 34 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: io_uring/sqpoll: don't wait for the thread to exit io_sq_thread_stop() wakes the SQPOLL thread and waits for it to exit. The thread belongs to the thread group that created the ring, so a SIGSTOP or the cgroup freezer holds it in get_signal(), and the wake up doesn't change that. io_ring_exit_work() then sleeps in that wait until someone continues or kills the process. iou_exit has 64 slots, so 64 closed SQPOLL rings of a stopped process keep every other ring from being freed, for everyone. Don't wait. Set the stop bit, wake the thread, and let it exit when it gets to run again. The sqd can now outlive its last ring, so give it a second refcount with one reference for the rings and one for the thread, and free it with the last one. The thread can't reach a freed ring, rings leave ctx_list before dropping their reference, and the io-wq hash is refcounted.
References
- https://git.kernel.org/stable/c/eef52e65034bfaebcd9fe75331298fd96e600f7f
- https://git.kernel.org/stable/c/cc907f5f0afb7286185628d0d80f4c0369985aef
- https://git.kernel.org/stable/c/a85561cc4fc542443c9e3c363f8bcb2c016da68e
- https://git.kernel.org/stable/c/8bfd0b6319261f08b29945228b3377f89211f303
- https://git.kernel.org/stable/c/8298ce6443ff75f7edc3e30c967270a9c3c12d4b
- https://git.kernel.org/stable/c/360395e8dbf9d23579f74b84a1af11190813b0f8
European references
- ENISA EUVD · EUVD-2026-131216
- GCVE · GCVE-0-2026-99799
CERT-FR advisories
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < eef52e65034bfaebcd9fe75331298fd96e600f7f affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < cc907f5f0afb7286185628d0d80f4c0369985aef affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < a85561cc4fc542443c9e3c363f8bcb2c016da68e affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < 8bfd0b6319261f08b29945228b3377f89211f303 affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < 8298ce6443ff75f7edc3e30c967270a9c3c12d4b affected : ≥ 16efa4fce3b7af17bb45d635c3e89992d721e0f3 < 360395e8dbf9d23579f74b84a1af11190813b0f8 Other versions : unaffected |
| Linux · Linux | affected : 5.12 unaffected : ≥ 0 < 5.12 unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * 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 |