io_uring/poll: fix signed comparison in io_poll_get_ownership()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.16, 6.1, 6.1.175, 6.6.140, 6.12.86, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in 81bf96b0abbfa4cd47ea32e12596aed3855fb2f3; From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in cf522703d4f194991615763697ae25a3f9539763; From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in fc47043f3d9af3efa407665b47f8378ec691ba18; From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in ea0697129807d718037f618221037aa0660ee3c5; From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in c6d191164dc81838d8dbf452a6000f68c558d1ae; From a26a35e9019fd70bf3cf647dcfdae87abc7bacea · fixed in 326941b22806cbf2df1fbfe902b7908b368cce42; From 5.15.82 · fixed in 5.16; From 6.0.11 · fixed in 6.1
- Linux Linux
6.1
- KernelLinux
From 6.1.0 · fixed in 6.1.175; From 6.2.0 · fixed in 6.6.140; From 6.7.0 · fixed in 6.12.86; From 6.13.0 · fixed in 6.18.27; From 6.19.0 · fixed in 7.0.4