CVE-2026-52933: io_uring/poll: fix signed comparison in io_poll_get_ownership()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-52933 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 6.1.175 with commit 81bf96b0abbfa4cd47ea32e12596aed3855fb2f3 Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 6.6.140 with commit cf522703d4f194991615763697ae25a3f9539763 Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 6.12.86 with commit fc47043f3d9af3efa407665b47f8378ec691ba18 Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 6.18.27 with commit ea0697129807d718037f618221037aa0660ee3c5 Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 7.0.4 with commit c6d191164dc81838d8dbf452a6000f68c558d1ae Issue introduced in 6.1 with commit a26a35e9019fd70bf3cf647dcfdae87abc7bacea and fixed in 7.1 with commit 326941b22806cbf2df1fbfe902b7908b368cce42 Issue introduced in 5.15.82 with commit 4b702b7d11ce1b9d26fc6d7c5a7ef4ac1d455048 Issue introduced in 6.0.11 with commit bc4e6ee16778149811333a969a7a893d4cc110c5
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-52933
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
io_uring/poll.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/81bf96b0abbfa4cd47ea32e12596aed3855fb2f3 https://git.kernel.org/stable/c/cf522703d4f194991615763697ae25a3f9539763 https://git.kernel.org/stable/c/fc47043f3d9af3efa407665b47f8378ec691ba18 https://git.kernel.org/stable/c/ea0697129807d718037f618221037aa0660ee3c5 https://git.kernel.org/stable/c/c6d191164dc81838d8dbf452a6000f68c558d1ae https://git.kernel.org/stable/c/326941b22806cbf2df1fbfe902b7908b368cce42