HIGH Introduced in 4.14
bcm-sysport Stats Overflow
CVE-2026-98808
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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].
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 4.14 | 6.12.113 | 29d1d35ad5ad |
| 6.18 | 4.14 | 6.18.56 | 96d8b26be5bc |
| 6.6 | 4.14 | 6.6.160 | 96a2b0420515 |
| 7.2 | 4.14 | 7.2.10 | faba9fdde480 |
| mainline | 4.14 | 7.3 | eb7b84af0ec5 |
| cip/6.12 | 4.14 | 6.12.114-cip34 | 29d1d35ad5ad |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |