CVE-2026-72391

net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before 92dd9a522f01ef57f633a8c1953cf6d48ef2bcd5Affected
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before d2c37f26d1a37f8177be5f354537f8ee3ec31cc2Affected
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before 3183b6f5510c876a1c4b4a6bdc3d0ad8940fe742Affected
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before 86d379fcf1b79bdf4bc2ac891297f30f63d041d8Affected
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before 2381bf3f484e8e4fd89a225445872ec14e036ab5Affected
  • e85b1347ace677c3822c12d9332dfaaffe594da6 to before 8f31efff9206f9f0adb853cad6916086aac4d5efAffected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.