io_uring/waitid: prevent cancel reference wrap (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % · percentile 5 ()
- 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/waitid: prevent cancel reference wrap io_waitid packs the cancellation state into bit 31 of ->refs and uses bits 30:0 as a 31-bit reference counter: #define IO_WAITID_CANCEL_FLAG BIT(31) #define IO_WAITID_REF_MASK GENMASK(30, 0) __io_waitid_cancel() marks a request canceled, then increments the low bits of ->refs to claim completion ownership. When another path owns the request, the increment remains even though cancellation returns false. The request remains discoverable by cancellation, so repeated failed attempts can wrap the 31-bit reference field to zero. A later cancellation can claim ownership and complete the request a second time. Use atomic_fetch_or() when setting the cancel flag and inspect the old flag value. The first cancel attempt continues to the existing ownership increment, preserving its wake and issuer handoff semantics. Later attempts see the cancel flag and return without incrementing the reference field. This makes repeated failed cancellation attempts idempotent while leaving the first-cancel state transitions unchanged.
References
- https://git.kernel.org/stable/c/20b67288574c7c3df6b8ea7ed3b7af90a868006f
- https://git.kernel.org/stable/c/5bfeee1774791602a0d53eb717f00f172127a017
- https://git.kernel.org/stable/c/857aa2012b91cad6fdef54a4b6c632d9d0b6e64f
- https://git.kernel.org/stable/c/22fb4a4518e305164c7f203608287564de292f34
- https://git.kernel.org/stable/c/98787d3fa4e99564d2b2bc21255b21f670c450d0
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
European references
- ENISA EUVD · EUVD-2026-115269
- GCVE · GCVE-0-2026-99227
CERT-FR advisories
- CERTFR-2026-AVI-1676 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1636 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ f31ecf671ddc498f20219453395794ff2383e06b < 20b67288574c7c3df6b8ea7ed3b7af90a868006f affected : ≥ f31ecf671ddc498f20219453395794ff2383e06b < 5bfeee1774791602a0d53eb717f00f172127a017 affected : ≥ f31ecf671ddc498f20219453395794ff2383e06b < 857aa2012b91cad6fdef54a4b6c632d9d0b6e64f affected : ≥ f31ecf671ddc498f20219453395794ff2383e06b < 22fb4a4518e305164c7f203608287564de292f34 affected : ≥ f31ecf671ddc498f20219453395794ff2383e06b < 98787d3fa4e99564d2b2bc21255b21f670c450d0 Other versions : unaffected |
| Linux · Linux | affected : 6.7 unaffected : ≥ 0 < 6.7 unaffected : ≥ 6.12.115 ≤ 6.12.* unaffected : ≥ 6.18.60 ≤ 6.18.* unaffected : ≥ 7.2.14 ≤ 7.2.* unaffected : ≥ 7.3.1 ≤ 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 |