io_uring/poll: fix signed comparison in io_poll_get_ownership()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.16, Kernel 6.1, Kernel 6.1.175 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: io_uring/poll: fix signed comparison in io_poll_get_ownership() io_poll_get_ownership() uses a signed comparison to check whether poll_refs has reached the threshold for the slowpath: if (unlikely(atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS)) atomic_read() returns int (signed). When IO_POLL_CANCEL_FLAG (BIT(31)) is set in poll_refs, the value becomes negative in signed arithmetic, so the >= 128 comparison always evaluates to false and the slowpath is never taken. Fix this by casting the atomic_read() result to unsigned int before the comparison, so that the cancel flag is treated as a large positive value and correctly triggers the slowpath.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.15.82 <5.16, >=6.0.11 <6.1, >=6.1.1 <6.1.175, >=6.13 <6.18.27, >=6.19 <7.0.4, >=6.2 <6.6.140, >=6.7 <6.12.86, =6.1, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <326941b22806cbf2df1fbfe902b7908b368cce42, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <81bf96b0abbfa4cd47ea32e12596aed3855fb2f3, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <c6d191164dc81838d8dbf452a6000f68c558d1ae, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <cf522703d4f194991615763697ae25a3f9539763, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <ea0697129807d718037f618221037aa0660ee3c5, >=a26a35e9019fd70bf3cf647dcfdae87abc7bacea <fc47043f3d9af3efa407665b47f8378ec691ba18, =4b702b7d11ce1b9d26fc6d7c5a7ef4ac1d455048, =bc4e6ee16778149811333a969a7a893d4cc110c5 | 5.16, 6.1, 6.1.175, 6.18.27, 7.0.4, 6.6.140, 6.12.86, 326941b22806cbf2df1fbfe902b7908b368cce42, 81bf96b0abbfa4cd47ea32e12596aed3855fb2f3, c6d191164dc81838d8dbf452a6000f68c558d1ae, cf522703d4f194991615763697ae25a3f9539763, ea0697129807d718037f618221037aa0660ee3c5, fc47043f3d9af3efa407665b47f8378ec691ba18 |
| linux-kernel: Kernel | >=5.15.82 <5.16, >=6.0.11 <6.1, >=6.1.0 <6.1.175, >=6.13.0 <6.18.27, >=6.19.0 <7.0.4, >=6.2.0 <6.6.140, >=6.7.0 <6.12.86 | 5.16, 6.1, 6.1.175, 6.18.27, 7.0.4, 6.6.140, 6.12.86 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket