# CVE-2026-99227: io_uring/waitid: prevent cancel reference wrap

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-02T16:06:36.101Z
- Modified: 2026-11-03T20:18:28.357Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from f31ecf671ddc498f20219453395794ff2383e06b before 20b67288574c7c3df6b8ea7ed3b7af90a868006f; from f31ecf671ddc498f20219453395794ff2383e06b before 5bfeee1774791602a0d53eb717f00f172127a017; from f31ecf671ddc498f20219453395794ff2383e06b before 857aa2012b91cad6fdef54a4b6c632d9d0b6e64f; from f31ecf671ddc498f20219453395794ff2383e06b before 22fb4a4518e305164c7f203608287564de292f34; from f31ecf671ddc498f20219453395794ff2383e06b before 98787d3fa4e99564d2b2bc21255b21f670c450d0; 6.7 (not affected: before 6.7; from 6.12.115 up to 6.12.*; from 6.18.60 up to 6.18.*; from 7.2.14 up to 7.2.*; from 7.3.1 up to 7.3.*; from 7.4-rc1 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-99227](https://www.cve.org/CVERecord?id=CVE-2026-99227), CVE Terms of Use, modified 2026-11-03
- NVD: [CVE-2026-99227](https://nvd.nist.gov/vuln/detail/CVE-2026-99227), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-99227 · Whole record: https://cve.day/CVE-2026-99227.json · Rebuilt by cve.day 2026-11-25T22:59:48.202Z
