Descrizione
In the Linux kernel, the following vulnerability has been resolved: tty: serial: samsung: Remove redundant port lock acquisition in rx helpers Sashiko identified a deadlock when the console flow is engaged [1]. When console flow control is enabled (UPF_CONS_FLOW), s3c24xx_serial_stop_tx() calls s3c24xx_serial_rx_enable() and s3c24xx_serial_start_tx() calls s3c24xx_serial_rx_disable(). The serial core framework invokes the .stop_tx() and .start_tx() callbacks with the port->lock spinlock already held. Furthermore, all internal driver paths that invoke stop_tx (such as the DMA TX completion handler s3c24xx_serial_tx_dma_complete() or the PIO TX IRQ handler s3c24xx_serial_tx_irq()) also acquire port->lock prior to calling it. (Note that s3c24xx_serial_start_tx() is only invoked by the serial core). However, s3c24xx_serial_rx_enable() and s3c24xx_serial_rx_disable() unconditionally attempt to acquire port->lock again using uart_port_lock_irqsave(). Since spinlocks are not recursive, this causes a deadlock on the same CPU when console flow control is engaged. Remove the redundant lock acquisition from both rx helper functions.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.27precedenti alla5.10.259→ aggiornare alla5.10.259o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.210→ aggiornare alla5.15.210o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.176→ aggiornare alla6.1.176o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.143→ aggiornare alla6.6.143o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.93→ aggiornare alla6.12.93o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.35→ aggiornare alla6.18.35o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.12→ aggiornare alla7.0.12o successiva. - Linux Linux Kernel: vulnerabile la versione
7.1 rc1→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc2→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc3→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc4→ installare l'ultima release supportata dal vendor. - Linux Linux Kernel: vulnerabile la versione
7.1 rc5→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/10014eb7eee351f7b587f8ac858…
- Patch: git.kernel.org/stable/c/14143ec10d69f42806b5d7b046f…
- Patch: git.kernel.org/stable/c/9c92b42207978559e32903c3098…
- Patch: git.kernel.org/stable/c/9fd48937046efc9abb89379d63e…
- Patch: git.kernel.org/stable/c/a3bb136bff5e6a5e48cdd813246…
- Patch: git.kernel.org/stable/c/a9c22e0f93ba18322a6623ecdda…
- Patch: git.kernel.org/stable/c/ee9eb72be95490602c493db050c…
- Patch: git.kernel.org/stable/c/f4c3e63fa8639aedf96fb200d99…
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 | ≥ 2.6.27 < 5.10.259 | 5.10.259 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.210 | 5.15.210 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.176 | 6.1.176 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.143 | 6.6.143 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.93 | 6.12.93 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.35 | 6.18.35 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.12 | 7.0.12 |
| Linux | Linux Kernel | 7.1 rc1 | — |
| Linux | Linux Kernel | 7.1 rc2 | — |
| Linux | Linux Kernel | 7.1 rc3 | — |
| Linux | Linux Kernel | 7.1 rc4 | — |
| Linux | Linux Kernel | 7.1 rc5 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/10014eb7eee351f7b587f8ac85830f0c9343cb9a
- Patchhttps://git.kernel.org/stable/c/14143ec10d69f42806b5d7b046f0fd1b835831ae
- Patchhttps://git.kernel.org/stable/c/9c92b42207978559e32903c3098aaf5c5b5788b2
- Patchhttps://git.kernel.org/stable/c/9fd48937046efc9abb89379d63ee9cc5c661d711
- Patchhttps://git.kernel.org/stable/c/a3bb136bff5e6a5e48cdd813246c9c4686feaaa9
- Patchhttps://git.kernel.org/stable/c/a9c22e0f93ba18322a6623ecdda2f0cd858ca350
- Patchhttps://git.kernel.org/stable/c/ee9eb72be95490602c493db050c73d925c3a4d74
- Patchhttps://git.kernel.org/stable/c/f4c3e63fa8639aedf96fb200d9939945a9eed51e