HIGH Introduced in 5.4
mv88e6xxx RuleDump OOB
CVE-2026-98027
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: bound the policy rule dump by the caller's buffer size mv88e6xxx_get_rxnfc() uses rxnfc->rule_cnt as the write index while dumping the policy IDR, clobbering the input value before it has been looked at. That input is the number of entries the caller had room for. ETHTOOL_GRXCLSRLALL requires no CAP_NET_ADMIN and the ioctl sizes the buffer from the rule_cnt userspace passes in, so once an admin has installed policy rules any user can ask for fewer slots than there are rules and run off the end of the allocation. A rule_cnt of 0 leaves the buffer pointer NULL and the walk dereferences it. Count into a local so the caller's limit survives the walk, and stop with -EMSGSIZE once it is reached.
02KernelScan AI Analysis
Risk summary
Any unprivileged local user can trigger an out-of-bounds write in the mv88e6xxx switch driver's ethtool rule-dump path, provided an administrator has previously installed policy rules on the device. The overflow corrupts kernel heap memory and can crash the kernel, with potential for privilege escalation from the heap corruption primitive.
Vulnerability analysis
The Marvell mv88e6xxx switch driver's ethtool rule-dump routine reuses the caller's buffer-capacity field as its write index, zeroing the limit before iterating through all installed policy rules. When the number of configured rules exceeds the buffer space the caller requested, the driver writes rule IDs past the end of the kernel allocation; requesting a zero-length buffer causes a NULL pointer dereference. The fix preserves the caller's limit in a separate counter and stops with an error once that limit is reached. Any unprivileged local user can trigger this through the ethtool interface on a device backed by an mv88e6xxx switch chip, as the read operation requires no elevated privileges, but the device must already have policy rules configured by an administrator.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 5.4 | 5.10.271 | 7e4bfc5f0b66 |
| 5.15 | 5.4 | 5.15.222 | 01124cd2cf4b |
| 6.1 | 5.4 | 6.1.189 | 609c4378f212 |
| 6.12 | 5.4 | 6.12.111 | 44cd4674d9aa |
| 6.18 | 5.4 | 6.18.53 | 7a683c2b0628 |
| 6.6 | 5.4 | 6.6.158 | c5b5c52b6524 |
| 7.2 | 5.4 | 7.2.7 | cda5ac8fe8ac |
| mainline | 5.4 | 7.3 | b1fffc273112 |
| cip/5.10 | 5.4 | 5.10.271-cip78 | 7e4bfc5f0b66 |
| cip/5.10-rt | 5.4 | 5.10.272-cip79-rt35 | 7e4bfc5f0b66 |
| cip/6.1 | 5.4 | 6.1.189-cip61 | 609c4378f212 |
| cip/6.1-rt | 5.4 | 6.1.189-cip61-rt32 | 609c4378f212 |
| cip/6.12 | 5.4 | 6.12.111-cip32 | 44cd4674d9aa |
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.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |