Skip to contentSkip to conversation

CVE-2026-98489: net: atl1c: fix soft lockup on out-of-range tpd_cons read

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: atl1c: fix soft lockup on out-of-range tpd_cons read

The hardware can report an out-of-range tpd_cons (seen as 0xffff) while the PCIe link/MAC is resetting. An out-of-range value can never be reached and the loop below would spin forever. To avoid a soft lockup treat it as "nothing new to clean" instead.

Reproduced on two machines, same NIC (Qualcomm Atheros AR8151 v2.0, 4-port), triggered by rebooting a Mikrotik CCR2004 PCIe card that the ports are directly linked to:

- Ubuntu 26.04.1 LTS, kernel 7.0.0-31-generic. The link-flap precursor, before the lockup was captured with a full trace elsewhere:

    atl1c 0000:05:00.0 enp5s0f0: NETDEV WATCHDOG: CPU: 4: transmit queue 2 timed out 489984 ms
    atl1c 0000:05:00.0: MAC state machine can't be idle since disabled for 10ms second
    atl1c 0000:05:00.0: atl1c: enp5s0f0 NIC Link is Up<65535 Mbps Full Duplex>

65535 (0xffff) here is the same value tpd_cons reads back once the loop below gets stuck.

- Proxmox VE, kernel 7.0.14-11-pve. Same NIC/trigger, this time caught by the soft lockup watchdog with a full stack trace:

    watchdog: BUG: soft lockup - CPU#12 stuck for 354s! [napi/eth%d-0:329]
    CPU: 12 UID: 0 PID: 329 Comm: napi/eth%d-0 Tainted: P O L 7.0.14-11-pve #1 PREEMPT(lazy)
    RIP: 0010:atl1c_clean_tx+0x142/0x2d0 [atl1c]
    Call Trace:
     <TASK>
     __napi_poll+0x32/0x1e0
     napi_threaded_poll_loop+0x286/0x2e0
     napi_threaded_poll+0xfd/0x140
     kthread+0xf7/0x130
     ret_from_fork+0x2da/0x3a0
     ret_from_fork_asm+0x1a/0x30
     </TASK>

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

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

	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 5.10.271 with commit e7acd4cdeccbcdfd407adeb72b1eba14d1145b6f
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 5.15.222 with commit 5ea2576a4f5ec476f33169fdbe9090d2b038ad13
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.1.189 with commit 4daf80da0c38b8cd92c111ad96cb38322aabf586
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.6.158 with commit 57b55367b6e3accc55a989afeaf127063e3614dc
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.12.112 with commit 9f2cc71a2e2799d9c993c73f1bd36507eef6ae43
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 6.18.55 with commit 586847400b1168a88917287ac02c2c91a620b841
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 7.2.9 with commit d4ab263e40fcf7cfa38a43ec774067d32eb94e16
	Issue introduced in 2.6.29 with commit 43250ddd75a35d1f7926d989a10fefd30c37eaa7 and fixed in 7.3-rc5 with commit 36c2009d90f2210ef92e6f4f2850e8b57b09e754

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

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/atheros/atl1c/atl1c_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/e7acd4cdeccbcdfd407adeb72b1eba14d1145b6f
	https://git.kernel.org/stable/c/5ea2576a4f5ec476f33169fdbe9090d2b038ad13
	https://git.kernel.org/stable/c/4daf80da0c38b8cd92c111ad96cb38322aabf586
	https://git.kernel.org/stable/c/57b55367b6e3accc55a989afeaf127063e3614dc
	https://git.kernel.org/stable/c/9f2cc71a2e2799d9c993c73f1bd36507eef6ae43
	https://git.kernel.org/stable/c/586847400b1168a88917287ac02c2c91a620b841
	https://git.kernel.org/stable/c/d4ab263e40fcf7cfa38a43ec774067d32eb94e16
	https://git.kernel.org/stable/c/36c2009d90f2210ef92e6f4f2850e8b57b09e754