mfd: sm501: Fix reference leak on failed device registration (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.22 % · centile 13 ()
- É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: mfd: sm501: Fix reference leak on failed device registration When platform_device_register() fails in sm501_register_device(), the embedded struct device in pdev has already been initialized by device_initialize(), but the failure path only reports the error and returns without dropping the device reference for the current platform device: sm501_register_device() -> platform_device_register(pdev) -> device_initialize(&pdev->dev) -> setup_pdev_dma_masks(pdev) -> platform_device_add(pdev) This leads to a reference leak when platform_device_register() fails. Fix this by calling platform_device_put() before returning the error. The issue was identified by a static analysis tool I developed and confirmed by manual review.
Références
- https://git.kernel.org/stable/c/bbb1ecaed4ed7680e63d3a0f143f03de32de5d6e
- https://git.kernel.org/stable/c/e2dac91380a10e9e8d5883fb73ce9d9b390a629c
- https://git.kernel.org/stable/c/0baf9d43a7b7b43df2900bd8656e75b725028b6e
- https://git.kernel.org/stable/c/a3e340d506c1036a747fb0972aebf1063f7ef30e
- https://git.kernel.org/stable/c/760a1029692f1d788dc11aa636a3bf432e58b240
- https://git.kernel.org/stable/c/16a42c88c4667fa0bd944e438a667e059551f1f1
- https://git.kernel.org/stable/c/2ff8156fd500d54c61430b6834137fd0a07047ce
- https://git.kernel.org/stable/c/8c2f0b42fc252e1bf1c7746447091a468e784ca1
Références européennes
- ENISA EUVD · EUVD-2026-59139
- GCVE · GCVE-0-2026-72240
Avis du CERT-FR
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1593 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1537 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1535 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1470 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1469 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < bbb1ecaed4ed7680e63d3a0f143f03de32de5d6e affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < e2dac91380a10e9e8d5883fb73ce9d9b390a629c affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < 0baf9d43a7b7b43df2900bd8656e75b725028b6e affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < a3e340d506c1036a747fb0972aebf1063f7ef30e affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < 760a1029692f1d788dc11aa636a3bf432e58b240 affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < 16a42c88c4667fa0bd944e438a667e059551f1f1 affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < 2ff8156fd500d54c61430b6834137fd0a07047ce affectée : ≥ b6d6454fdb66f3829af8b92ab06825b6060fdf7e < 8c2f0b42fc252e1bf1c7746447091a468e784ca1 Autres versions : non affectée |
| Linux · Linux | affectée : 2.6.21 non affectée : ≥ 0 < 2.6.21 non affectée : ≥ 5.10.261 ≤ 5.10.* non affectée : ≥ 5.15.212 ≤ 5.15.* non affectée : ≥ 6.1.178 ≤ 6.1.* non affectée : ≥ 6.6.145 ≤ 6.6.* non affectée : ≥ 6.12.97 ≤ 6.12.* non affectée : ≥ 6.18.40 ≤ 6.18.* non affectée : ≥ 7.1.5 ≤ 7.1.* non affectée : ≥ 7.2 ≤ * 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 |