Skip to contentSkip to conversation

CVE-2026-98808: net: systemport: Fix buffer overflow in bcm_sysport_get_stats()

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: systemport: Fix buffer overflow in bcm_sysport_get_stats()

When running on SYSTEMPORT Lite, certain statistics are unsupported and skipped during bcm_sysport_get_stats(). The variable 'j' tracks the compacted index into the destination data buffer, whereas 'i' iterates over all elements in bcm_sysport_gstrings_stats.

Because the buffer allocated by ethtool is sized only according to bcm_sysport_get_sset_count(), storing values at data[i] instead of data[j] writes past the allocated array bounds, leading to memory corruption.

Fix this by writing to data[j] instead of data[i].

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

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

	Issue introduced in 4.14 with commit 10377ba7673d19e28d92846955d51f49acd25c35 and fixed in 6.12.113 with commit 29d1d35ad5ad379a904263ea1cd4ba1d71cd965f
	Issue introduced in 4.14 with commit 10377ba7673d19e28d92846955d51f49acd25c35 and fixed in 6.18.56 with commit 96d8b26be5bc451188acdcee055948da45adbde0
	Issue introduced in 4.14 with commit 10377ba7673d19e28d92846955d51f49acd25c35 and fixed in 7.2.10 with commit faba9fdde480356f4a1d3b1a5713b7b354858a1c
	Issue introduced in 4.14 with commit 10377ba7673d19e28d92846955d51f49acd25c35 and fixed in 7.3-rc6 with commit eb7b84af0ec5c71b4920e999611b466b3784496c

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

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/broadcom/bcmsysport.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/29d1d35ad5ad379a904263ea1cd4ba1d71cd965f
	https://git.kernel.org/stable/c/96d8b26be5bc451188acdcee055948da45adbde0
	https://git.kernel.org/stable/c/faba9fdde480356f4a1d3b1a5713b7b354858a1c
	https://git.kernel.org/stable/c/eb7b84af0ec5c71b4920e999611b466b3784496c