Skip to contentSkip to conversation

CVE-2026-97973: net: macb: destroy the phylink instance on the probe error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: macb: destroy the phylink instance on the probe error path

macb_mii_init() creates a phylink instance on both of its success paths, but the probe unwind frees the netdev without destroying it, so a failing macb_alloc_tieoff() or register_netdev() leaks the instance.

Destroy it at err_out_unregister_mdio, which is only reachable once macb_mii_init() has succeeded, so bp->phylink is valid there.

The Linux kernel CVE team has assigned CVE-2026-97973 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.5 with commit 7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 and fixed in 6.12.111 with commit 23b6a44ffea1c54a4232aa86ee470b21422a8cc5
	Issue introduced in 5.5 with commit 7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 and fixed in 6.18.53 with commit e92a45b872b035c79acde8dd0da096a72b61ff2f
	Issue introduced in 5.5 with commit 7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 and fixed in 7.2.7 with commit 8558e3195664113c14a4d8fcf221b3caff41fed1
	Issue introduced in 5.5 with commit 7897b071ac3b45a5788d084fc7f8a8ee9e5f07f0 and fixed in 7.3-rc3 with commit 7d059f390750152b9bd69df934198651b94fc26d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97973

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/ethernet/cadence/macb_main.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/23b6a44ffea1c54a4232aa86ee470b21422a8cc5
	https://git.kernel.org/stable/c/e92a45b872b035c79acde8dd0da096a72b61ff2f
	https://git.kernel.org/stable/c/8558e3195664113c14a4d8fcf221b3caff41fed1
	https://git.kernel.org/stable/c/7d059f390750152b9bd69df934198651b94fc26d