Skip to contentSkip to conversation

CVE-2026-98564: net: dsa: mt7530: leave the MDIO IRQ mappings to regmap-irq

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: dsa: mt7530: leave the MDIO IRQ mappings to regmap-irq

mt7530_remove_common() disposes the per-PHY interrupt mappings from .remove, but the regmap-irq chip that owns the domain is devm-registered, so its parent interrupt is only freed once .remove has returned. The switch's own regmap-irq thread can therefore still dispatch on a mapping that is already gone: irq_find_mapping() returns 0, irq_to_desc() returns NULL and handle_nested_irq() locks desc->lock without checking it. The attached PHYs have not given those interrupts back yet either, which the kernel warns about a moment before the fault.

regmap_del_irq_chip() disposes the same mappings itself, after freeing the parent interrupt and before removing the domain, so there is nothing left for the driver to do here. Until it runs the descriptors stay alive, and a late dispatch on one of them is harmless: dsa_unregister_switch() has freed the PHY handlers by then, so handle_nested_irq() finds no action and returns.

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

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

	Issue introduced in 6.15 with commit 254f6b272e3b67bf31c42ee9da62a449d74d1478 and fixed in 6.18.55 with commit 2357c682f6eaf639dec88c68b3c0c93a3b802635
	Issue introduced in 6.15 with commit 254f6b272e3b67bf31c42ee9da62a449d74d1478 and fixed in 7.2.9 with commit f306e465b5a2091cd3fe3dd0feb10cfc94cfb2f8
	Issue introduced in 6.15 with commit 254f6b272e3b67bf31c42ee9da62a449d74d1478 and fixed in 7.3-rc5 with commit 0d80ba0a204c6a16bd7778b50de578dff107c0fe

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-98564

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/dsa/mt7530.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/2357c682f6eaf639dec88c68b3c0c93a3b802635
	https://git.kernel.org/stable/c/f306e465b5a2091cd3fe3dd0feb10cfc94cfb2f8
	https://git.kernel.org/stable/c/0d80ba0a204c6a16bd7778b50de578dff107c0fe