Descrizione
In the Linux kernel, the following vulnerability has been resolved: io_uring/io-wq: re-check IO_WQ_BIT_EXIT for each linked work item commit 10dc95939817 ("io_uring/io-wq: check IO_WQ_BIT_EXIT inside work run loop") fixed the obvious case where io_worker_handle_work() took one exit-bit snapshot before draining pending work, but the fix stops one level too early. io_worker_handle_work() now re-checks IO_WQ_BIT_EXIT in its outer work run loop, yet it still snapshots that bit once before processing a whole dependent linked-work chain. If io_wq_exit_start() sets IO_WQ_BIT_EXIT after the first linked item has started, the remaining linked items can still reuse stale do_kill = false, skip IO_WQ_WORK_CANCEL, and continue running after exit has begun. Move the check further inside, so it covers linked items too. Note: this is a syzbot special as it loves setting up tons of slow linked work on weird devices like msr that take forever to read, and immediately close the ring. Exit then takes a long time.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.10.253precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.15.203precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.1.167precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.6.122precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.12.68precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.18.8precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19.1precedenti alla7.1.4→ aggiornare alla7.1.4o successiva. - Linux Linux Kernel: vulnerabile la versione
6.19→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
6.19 rc7→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
6.19 rc8→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/14b7ecad2ec56699325180a744f…
- Patch: git.kernel.org/stable/c/1636d85dc139b07c0449308f2bb…
- Patch: git.kernel.org/stable/c/29bef9934b2521f787bb15dd198…
- Patch: git.kernel.org/stable/c/6e2f51f3e06773c2ee98ad09738…
- Patch: git.kernel.org/stable/c/ab85765cbe3258b43dc6729af0e…
- Patch: git.kernel.org/stable/c/b6f179a653a934736c88d820fe0…
- Patch: git.kernel.org/stable/c/d179533c610e1b4c6aa436e3c1f…
- Patch: git.kernel.org/stable/c/ea61b04e1d7242cb37f5ed2cc91…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 5.10.253 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.15.203 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 6.1.167 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.6.122 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.12.68 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.18.8 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19.1 < 7.1.4 | 7.1.4 |
| Linux | Linux Kernel | 6.19 | — |
| Linux | Linux Kernel | 6.19 rc7 | — |
| Linux | Linux Kernel | 6.19 rc8 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/14b7ecad2ec56699325180a744f4b19f046401bb
- Patchhttps://git.kernel.org/stable/c/1636d85dc139b07c0449308f2bb5e0c7a2e0da99
- Patchhttps://git.kernel.org/stable/c/29bef9934b2521f787bb15dd1985d4c0d12ae02a
- Patchhttps://git.kernel.org/stable/c/6e2f51f3e06773c2ee98ad09738f0908b48f76f9
- Patchhttps://git.kernel.org/stable/c/ab85765cbe3258b43dc6729af0e6ce3a87a133d8
- Patchhttps://git.kernel.org/stable/c/b6f179a653a934736c88d820fe0098c3c2532549
- Patchhttps://git.kernel.org/stable/c/d179533c610e1b4c6aa436e3c1fd1b719d2c727c
- Patchhttps://git.kernel.org/stable/c/ea61b04e1d7242cb37f5ed2cc91cf21a493f6597
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html