Bug 2532289 (CVE-2026-81009) - CVE-2026-81009 kernel: io_uring/query: cap user size passed to copy_struct_to_user
Summary: CVE-2026-81009 kernel: io_uring/query: cap user size passed to copy_struct_to...
Keywords:
Status: NEW
Alias: CVE-2026-81009
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-11 22:09 UTC by OSIDB Bzimport
Modified: 2026-09-14 20:47 UTC (History)
17 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-11 22:09:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring/query: cap user size passed to copy_struct_to_user

io_handle_query_entry() clamps hdr.size for the inbound copy_from_user()
but keeps the original user value as usize. copy_struct_to_user() uses
that usize and, when it is larger than the kernel result, clear_user()s
the trailing bytes.

As hdr.size is a __u32, a query can request nearly 4 GiB of zeroing,
including on the error path where res_size stays 0. The interface is
reachable without a ring via IORING_REGISTER_QUERY.

Reject sizes larger than PAGE_SIZE, as recommended for copy_struct_*
interfaces.


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