7.8high
io_uring: ensure ctx->rings is stable for task work flags manipulation
- Severity
- 7.8high CVSS:3.1 by Linux
- 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: ensure ctx->rings is stable for task work flags manipulation If DEFER_TASKRUN | SETUP_TASKRUN is used and task work is added while the ring is being resized, it's possible for the OR'ing of IORING_SQ_TASKRUN to happen in the small window of swapping into the new rings and the old rings being freed. Prevent this by adding a 2nd ->rings pointer, ->rings_rcu, which is protected by RCU. The task work flags manipulation is inside RCU already, and if the resize ring freeing is done post an RCU synchronize, then there's no need to add locking to the fast path of task work additions. Note: this is only done for DEFER_TASKRUN, as that's the only setup mode that supports ring resizing. If this ever changes, then they too need to use the io_ctx_mark_taskrun() helper.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 before 7cc4530b3e952d4a5947e1e55d06620d8845d4f5, from 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 before 46dc07d5f31411cc023f3bf1f4a23a07bf6e0ed1, from 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 before 96189080265e6bb5dde3a4afbaf947af493e3f82, 6.13 Not affected: before 6.13, from 6.18.19 up to 6.18.*, from 6.19.9 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.13 before 6.18.19, from 6.19 before 6.19.9, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: io_uring: ensure ctx->rings is stable for task work flags manipulation If DEFER_TASKRUN | SETUP_TASKRUN is used and task work is added while the ring is being resized, it's possible for the OR'ing of IORING_SQ_TASKRUN to happen in the small window of swapping into the new rings and the old rings being freed. Prevent this by adding a 2nd ->rings pointer, ->rings_rcu, which is protected by RCU. The task work flags manipulation is inside RCU already, and if the resize ring freeing is done post an RCU synchronize, then there's no need to add locking to the fast path of task work additions. Note: this is only done for DEFER_TASKRUN, as that's the only setup mode that supports ring resizing. If this ever changes, then they too need to use the io_ctx_mark_taskrun() helper.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: io_uring: asegurar que ctx->rings sea estable para la manipulación de las banderas de trabajo de tarea Si se usa DEFER_TASKRUN | SETUP_TASKRUN y se añade trabajo de tarea mientras el anillo está siendo redimensionado, es posible que la operación OR de IORING_SQ_TASKRUN ocurra en la pequeña ventana de intercambio a los nuevos anillos y la liberación de los anillos antiguos. Esto se previene añadiendo un segundo puntero ->rings, ->rings_rcu, el cual está protegido por RCU. La manipulación de las banderas de trabajo de tarea ya está dentro de RCU, y si la liberación del anillo redimensionado se realiza después de una sincronización RCU, entonces no hay necesidad de añadir bloqueo a la ruta rápida de las adiciones de trabajo de tarea. Nota: esto solo se hace para DEFER_TASKRUN, ya que ese es el único modo de configuración que soporta el redimensionamiento de anillos. Si esto alguna vez cambia, entonces ellos también necesitarán usar la función auxiliar io_ctx_mark_taskrun().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23275 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-23275 changed 2026-10-19 | Public domain |