Linux
io_uring: fix physical SQE bounds check for SQE_MIXED 128-byte ops
In the Linux kernel, the following vulnerability has been resolved: io_uring: fix physical SQE bounds check for SQE_MIXED 128-byte ops When IORING_SETUP_SQE_MIXED is used without IORING_SETUP_NO_SQARRAY, the boundary check for 128-byte SQE operations in io_init_req() validated the logical SQ head position rather than the physical SQE index. The existing check: !(ctx->cached_sq_head & (ctx->sq_entries - 1)) ensures the logical position isn't at the end of the ring, which is correct for NO_SQARRAY rings where physical == logical. However, when sq_array is present, an unprivileged user can remap any logical position to an arbitrary physical index via sq_array. Setting sq_array[N] = sq_entries - 1 places a 128-byte operation at the last physical SQE slot, causing the 128-byte memcpy in io_uring_cmd_sqe_copy() to read 64 bytes past the end of the SQE array. Replace the cached_sq_head alignment check with a direct validation of the physical SQE index, which correctly handles both sq_array and NO_SQARRAY cases.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1cba30bf9fdd6c982708f3587f609a30c370d889, < 1f794f9bed3e5cf7250a3b4daf112a72ed1513e9
- >= 1cba30bf9fdd6c982708f3587f609a30c370d889, < 6f02c6b196036dbb6defb4647d8707d29b7fe95b
Fixed in 1f794f9bed3e5cf7250a3b4daf112a72ed1513e9, 6f02c6b196036dbb6defb4647d8707d29b7fe95b
- 6.19
Fixed in 0, 6.19.9, 7.0
Mitigation
Upgrade Linux to 1f794f9bed3e5cf7250a3b4daf112a72ed1513e9 or 6f02c6b196036dbb6defb4647d8707d29b7fe95b or later.
Upgrade Linux to 0 or 6.19.9 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.