5.5medium
io_uring/waitid: clear waitid info before copying it to userspace
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.11% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f31ecf671ddc498f20219453395794ff2383e06b before 954518e5a4a5efc5033253f6e36fc7b9f98363a3, from f31ecf671ddc498f20219453395794ff2383e06b before b737c6612c60c23b40a9f31749b99e6f61943847, from f31ecf671ddc498f20219453395794ff2383e06b before 4d2a0de611ab60d02fc768ae0cd5918b16bd5474, from f31ecf671ddc498f20219453395794ff2383e06b before 93d93f5f8da791e98159795c6ef683f45bd95d13, 6.7 Not affected: before 6.7, from 6.12.92 up to 6.12.*, from 6.18.34 up to 6.18.*, from 7.0.11 up to 7.0.*, from 7.1 up to * | CVE List |
| linux linux_kernel | from 6.7 before 6.12.92, from 6.13 before 6.18.34, from 6.19 before 7.0.11, 7.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: io_uring/waitid: limpiar la información de waitid antes de copiarla al espacio de usuario IORING_OP_WAITID almacena sus campos de resultado en la estructura io_waitid::info y luego los copia a siginfo del espacio de usuario. La ruta de preparación inicializa los argumentos de la solicitud, pero no inicializa la propia información. Si la operación de espera se completa sin informar un evento hijo, el código de espera común puede regresar sin escribir wo_info. En ese caso, io_waitid_finish() todavía copia iw->info al espacio de usuario, exponiendo bytes obsoletos del almacenamiento de comandos io_kiocb reutilizado. Limpiar el almacenamiento de resultados durante la preparación para que la ruta de io_uring coincida con la llamada al sistema waitid regular, que utiliza una estructura waitid_info inicializada a cero.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46315 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-46315 changed 2026-11-06 | Public domain |