Skip to contentSkip to conversation

CVE-2026-98028: eth: nfp: drop the replaced rule from the list when reprogramming fails

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:

eth: nfp: drop the replaced rule from the list when reprogramming fails

nfp_net_fs_add() replaces an existing rule by deleting it from the hardware, decrementing nn->fs.count and programming the new one. If nfp_net_fs_add_hw() fails the old entry stays on nn->fs.list - only the success path reaches list_replace() - so the list is one longer than nn->fs.count, and it advertises a rule whose hardware entry has already been torn down.

nn->fs.count is what ETHTOOL_GRXCLSRLCNT reports, so userspace then sizes its buffer one entry short of what the GRXCLSRLALL walk wants to write. That used to overwrite one u32 past the allocation; since the walk is bounded it is a permanent -EMSGSIZE instead, as nothing ever resyncs the counter.

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

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

	Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 6.12.111 with commit 603b70093f729f52a37544b48679903cad834856
	Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 6.18.53 with commit edaec279f59f801a05b751df475ed71a0a68c88a
	Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 7.2.7 with commit 552e528a7d85cbe088b2ae4f78194713975b46cf
	Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 7.3-rc3 with commit 108bb2142e3a12c9ad625ad662973127a113ddc6

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

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/netronome/nfp/nfp_net_ethtool.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/603b70093f729f52a37544b48679903cad834856
	https://git.kernel.org/stable/c/edaec279f59f801a05b751df475ed71a0a68c88a
	https://git.kernel.org/stable/c/552e528a7d85cbe088b2ae4f78194713975b46cf
	https://git.kernel.org/stable/c/108bb2142e3a12c9ad625ad662973127a113ddc6