Bug 2334510 (CVE-2024-56584) - CVE-2024-56584 kernel: io_uring/tctx: work around xa_store() allocation error issue
Summary: CVE-2024-56584 kernel: io_uring/tctx: work around xa_store() allocation error...
Keywords:
Status: NEW
Alias: CVE-2024-56584
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 15:06 UTC by OSIDB Bzimport
Modified: 2024-12-28 04:40 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 15:06:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring/tctx: work around xa_store() allocation error issue

syzbot triggered the following WARN_ON:

WARNING: CPU: 0 PID: 16 at io_uring/tctx.c:51 __io_uring_free+0xfa/0x140 io_uring/tctx.c:51

which is the

WARN_ON_ONCE(!xa_empty(&tctx->xa));

sanity check in __io_uring_free() when a io_uring_task is going through
its final put. The syzbot test case includes injecting memory allocation
failures, and it very much looks like xa_store() can fail one of its
memory allocations and end up with ->head being non-NULL even though no
entries exist in the xarray.

Until this issue gets sorted out, work around it by attempting to
iterate entries in our xarray, and WARN_ON_ONCE() if one is found.

Comment 1 Avinash Hanwate 2024-12-28 04:37:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122757-CVE-2024-56584-dad9@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.