serial: core: shut down initialized port on removal (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.21 % · centile 12 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: serial: core: shut down initialized port on removal When a serial port configured as a console is opened and subsequently closed, tty_port_shutdown() skips invoking port->ops->shutdown() because port->console is true. As a result, tty_port_initialized() remains true and the port's interrupt handler stays registered in the irq subsystem. If the underlying device is later unbound or removed (e.g. via sysfs driver unbind or device hot-unplug), serial_core_remove_one_port() unregisters the console, frees uport->name via kfree(), and tears down the port without shutting it down or freeing its IRQ. Consequently, the irqaction descriptor remains registered in genirq with action->name pointing to freed memory. This triggers a use-after-free read whenever genirq accesses action->name, such as when reading /proc/interrupts: BUG: KASAN: slab-use-after-free in string+0x476/0x570 Call Trace: string+0x476/0x570 vsnprintf+0x422/0x1300 seq_printf+0x... show_interrupts+... Fix this by acquiring port->mutex in serial_core_remove_one_port() after console unregistration, clearing port->console under the mutex to prevent data races with concurrent tty_port_shutdown(), and invoking uart_shutdown(NULL, state) if the port remains initialized. This ensures that port->ops->shutdown() is called and the IRQ is freed before kfree(uport->name).
Références
- https://git.kernel.org/stable/c/ab8b95daebb4109e454e1f10364aa38d978ca330
- https://git.kernel.org/stable/c/8afa64b162759edfd491d1d768e0a020fcd05853
- https://git.kernel.org/stable/c/fe1ed96339693654e96d99c980b122b6c4d65712
- https://git.kernel.org/stable/c/1dcfb3e31d56deafddb8d0fea849838497581e62
- https://git.kernel.org/stable/c/b05d5ed61e84ad15536e4e51db79a1d1c221c6f1
- https://git.kernel.org/stable/c/0f332cce4d592d751aad89b404f68463099167c8
- https://git.kernel.org/stable/c/928335263daf58e8c0e14d860091e57791693ea0
- https://git.kernel.org/stable/c/810d467c11f0c85107874d08dfdd11acba6aa0c0
Références européennes
- ENISA EUVD · EUVD-2026-130121
- GCVE · GCVE-0-2026-99455
Avis du CERT-FR
- CERTFR-2026-AVI-1676 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < ab8b95daebb4109e454e1f10364aa38d978ca330 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < 8afa64b162759edfd491d1d768e0a020fcd05853 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < fe1ed96339693654e96d99c980b122b6c4d65712 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < 1dcfb3e31d56deafddb8d0fea849838497581e62 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < b05d5ed61e84ad15536e4e51db79a1d1c221c6f1 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < 0f332cce4d592d751aad89b404f68463099167c8 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < 928335263daf58e8c0e14d860091e57791693ea0 affectée : ≥ 761ed4a94582ab291aa24dcbea4e01e8936488c8 < 810d467c11f0c85107874d08dfdd11acba6aa0c0 Autres versions : non affectée |
| Linux · Linux | affectée : 4.9 non affectée : ≥ 0 < 4.9 non affectée : ≥ 5.10.275 ≤ 5.10.* non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.117 ≤ 6.12.* non affectée : ≥ 6.18.61 ≤ 6.18.* non affectée : ≥ 7.3.2 ≤ 7.3.* non affectée : ≥ 7.4-rc1 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |