Skip to content
NewA calmer, faster ZeroHour

CVE-2026-99227

io_uring waitid cancel reference wrap in Linux kernel

CVSS 3.1
7.8 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-99227 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

A flaw in the Linux kernel io_uring waitid path packs a cancel flag and a 31-bit reference counter into one field. A local low-privileged user can repeat failed cancellations until the counter wraps to zero, so a later cancel claims ownership and completes the request a second time. Double completion can corrupt kernel state with high confidentiality, integrity, and availability impact on affected kernels.

What to do: Apply the Linux kernel update for CVE-2026-99227 that makes repeated failed waitid cancellations idempotent.

ProductAffected
Linux kernel—
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

2 stories