KernelScan.io

HIGH Introduced in 4.14

bcm-sysport Stats Overflow

CVE-2026-98808

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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].

02

Engine v0.9.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can trigger a heap buffer overflow by requesting ethtool statistics on a Broadcom SYSTEMPORT Lite interface. The overflow writes hardware statistics values past the end of a kernel-allocated buffer, enabling potential privilege escalation or kernel crash.

Affecteddrivers/net/ethernet/broadcom/bcmsysport.c (bcm-sysport driver)

Vulnerability analysis

The bcm_sysport_get_stats() function iterates over all defined statistics using index 'i', but on SYSTEMPORT Lite hardware some statistics are unsupported and skipped. A separate index 'j' tracks the compacted position in the destination buffer, which is sized only for the supported statistics. The bug writes each statistic to data[i] instead of data[j], causing writes beyond the allocated buffer when unsupported stats are skipped. The fix changes both 64-bit and 32-bit write sites to use the compacted index 'j'. An attacker needs local access and CAP_NET_ADMIN (available in user namespaces) to invoke the ethtool stats ioctl on an affected interface, making this reachable from containers or unprivileged user namespaces on systems with the Broadcom SYSTEMPORT driver loaded.

03

BranchIntroducedFixed inPatch commit
6.124.146.12.11329d1d35ad5ad
6.184.146.18.5696d8b26be5bc
6.64.146.6.16096a2b0420515
7.24.147.2.10faba9fdde480
mainline4.147.3eb7b84af0ec5
cip/6.124.146.12.114-cip3429d1d35ad5ad

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)