net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.21 % · percentile 11 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy sfp_i2c_mdiobus_create() allocates the I2C MDIO bus with mdio_i2c_alloc(), a plain (non-devm) allocation, and registers it. sfp_i2c_mdiobus_destroy() only unregisters the bus and clears sfp->i2c_mii without calling mdiobus_free(). As the only reference to the bus is then cleared, the struct mii_bus is leaked. This is hit whenever a copper/RollBall SFP module that instantiated an MDIO bus is removed: sfp_sm_main() takes the global teardown path and calls sfp_i2c_mdiobus_destroy(). sfp_cleanup(), on driver unbind, frees sfp->i2c_mii directly, which is why the leak only triggered on module hot-removal and not on unbind. Free the bus in sfp_i2c_mdiobus_destroy() to match the allocation done in sfp_i2c_mdiobus_create().
References
- https://git.kernel.org/stable/c/92dd9a522f01ef57f633a8c1953cf6d48ef2bcd5
- https://git.kernel.org/stable/c/d2c37f26d1a37f8177be5f354537f8ee3ec31cc2
- https://git.kernel.org/stable/c/3183b6f5510c876a1c4b4a6bdc3d0ad8940fe742
- https://git.kernel.org/stable/c/86d379fcf1b79bdf4bc2ac891297f30f63d041d8
- https://git.kernel.org/stable/c/2381bf3f484e8e4fd89a225445872ec14e036ab5
- https://git.kernel.org/stable/c/8f31efff9206f9f0adb853cad6916086aac4d5ef
European references
- ENISA EUVD · EUVD-2026-59290
- GCVE · GCVE-0-2026-72391
CERT-FR advisories
- 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-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
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < 92dd9a522f01ef57f633a8c1953cf6d48ef2bcd5 affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < d2c37f26d1a37f8177be5f354537f8ee3ec31cc2 affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < 3183b6f5510c876a1c4b4a6bdc3d0ad8940fe742 affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < 86d379fcf1b79bdf4bc2ac891297f30f63d041d8 affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < 2381bf3f484e8e4fd89a225445872ec14e036ab5 affected : ≥ e85b1347ace677c3822c12d9332dfaaffe594da6 < 8f31efff9206f9f0adb853cad6916086aac4d5ef Other versions : unaffected |
| Linux · Linux | affected : 6.1 unaffected : ≥ 0 < 6.1 unaffected : ≥ 6.1.178 ≤ 6.1.* unaffected : ≥ 6.6.145 ≤ 6.6.* unaffected : ≥ 6.12.97 ≤ 6.12.* unaffected : ≥ 6.18.40 ≤ 6.18.* unaffected : ≥ 7.1.5 ≤ 7.1.* unaffected : ≥ 7.2 ≤ * Other versions : affected |
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 |