serial: core: clear freed pointers on uart_register_driver() failure (Linux Linux)

CVE-2026-90336
Non disponible

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

Description

In the Linux kernel, the following vulnerability has been resolved: serial: core: clear freed pointers on uart_register_driver() failure uart_register_driver() leaves drv->state pointing to freed memory when tty_alloc_driver() fails. If tty_register_driver() fails, drv->tty_driver also retains a pointer after its reference is dropped. Drivers that use drv->state as an "already registered" flag can then skip registration on the next probe and pass the freed state to uart_add_one_port(). This issue was found with failslab on QEMU's raspi1ap board by failing registration and binding the PL011 port again. Clear both pointers on their failure paths, as uart_unregister_driver() already does.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
Linux · Linux
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 5e260edd28eddc3b92c9f578df3026fd11c710cf
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a9c0ffe5930c97b352f32febfc59a6e6ae6772ee
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 802e2192a9d38027730c2869c67c9131b8c8fe9f
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < ddf51d74ee9f9857c99477329d80408cedebda61
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 06b376432974fe5f25f2843a8e8438c6a1cf3d50
affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 61a2fb25551be0375bc16ef2a70c987dfca26183
Autres versions : non affectée
Linux · Linux
affectée : 2.6.12
non affectée : ≥ 0 < 2.6.12
non affectée : ≥ 6.1.191 ≤ 6.1.*
non affectée : ≥ 6.6.160 ≤ 6.6.*
non affectée : ≥ 6.12.114 ≤ 6.12.*
non affectée : ≥ 6.18.57 ≤ 6.18.*
non affectée : ≥ 7.2.6 ≤ 7.2.*
non affectée : ≥ 7.3 ≤ *
Autres versions : affectée

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD