io_uring/waitid: clear waitid info before copying it to userspace
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.18.34, Kernel 7.0.11, Kernel 6.12.92 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: io_uring/waitid: clear waitid info before copying it to userspace IORING_OP_WAITID stores its result fields in struct io_waitid::info and later copies them to userspace siginfo. The prep path initializes the request arguments, but it does not initialize info itself. If the wait operation completes without reporting a child event, the common wait code can return without writing wo_info. In that case io_waitid_finish() still copies iw->info to userspace, exposing stale bytes from the reused io_kiocb command storage. Clear the result storage during prep so the io_uring path matches the regular waitid syscall, which uses a zero-initialized struct waitid_info.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.13 <6.18.34, >=6.19 <7.0.11, >=6.7 <6.12.92, =7.1, >=f31ecf671ddc498f20219453395794ff2383e06b <93d93f5f8da791e98159795c6ef683f45bd95d13, >=f31ecf671ddc498f20219453395794ff2383e06b <954518e5a4a5efc5033253f6e36fc7b9f98363a3, >=f31ecf671ddc498f20219453395794ff2383e06b <b737c6612c60c23b40a9f31749b99e6f61943847, =6.7, >=f31ecf671ddc498f20219453395794ff2383e06b <4d2a0de611ab60d02fc768ae0cd5918b16bd5474 | 6.18.34, 7.0.11, 6.12.92, 93d93f5f8da791e98159795c6ef683f45bd95d13, 954518e5a4a5efc5033253f6e36fc7b9f98363a3, b737c6612c60c23b40a9f31749b99e6f61943847, 4d2a0de611ab60d02fc768ae0cd5918b16bd5474 |
| linux-kernel: Kernel | >=6.13.0 <6.18.34, >=6.19.0 <7.0.11, >=6.7.0 <6.12.92 | 6.18.34, 7.0.11, 6.12.92 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket