Skip to contentSkip to conversation

CVE-2026-97411: net: ibm: emac: mal: fix potential system hang in mal_remove()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

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: ibm: emac: mal: fix potential system hang in mal_remove()

napi_disable() is not idempotent and calling it on an already-disabled or unenabled NAPI context will cause the kernel to spin indefinitely waiting for the NAPI_STATE_SCHED bit to clear.

In mal_remove(), napi_disable() is called unconditionally. If no MACs were registered, NAPI was never enabled. Also, if they were registered but subsequently unregistered, NAPI was already disabled in mal_unregister_commac(). In either case, calling napi_disable() causes the kernel to hang upon module removal.

Fix this by only calling napi_disable() in mal_remove() if the commac list is not empty (which implies NAPI is enabled).

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

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

	Fixed in 6.12.111 with commit f6c1aad9b35fa083f48ce0c5926204891d82e089
	Fixed in 6.18.53 with commit c4cb9a728df66c46067b26263f5beb633aae4087
	Fixed in 7.2 with commit 7c5d41f87f079990bf241359e3c1332d8d10fe87

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

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/ibm/emac/mal.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/f6c1aad9b35fa083f48ce0c5926204891d82e089
	https://git.kernel.org/stable/c/c4cb9a728df66c46067b26263f5beb633aae4087
	https://git.kernel.org/stable/c/7c5d41f87f079990bf241359e3c1332d8d10fe87