KernelScan.io

HIGH Introduced in 5.4

mv88e6xxx RuleDump OOB

CVE-2026-98027

CVSS 7.0 / 10.0 NVD

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

KernelScan AI7.8HIGH

01

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.

02

Engine v0.6.0

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.

Affecteddrivers/net/dsa/mv88e6xxx/chip.c (mv88e6xxx DSA switch driver)

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.

03

BranchIntroducedFixed inPatch commit
5.105.45.10.2717e4bfc5f0b66
5.155.45.15.22201124cd2cf4b
6.15.46.1.189609c4378f212
6.125.46.12.11144cd4674d9aa
6.185.46.18.537a683c2b0628
6.65.46.6.158c5b5c52b6524
7.25.47.2.7cda5ac8fe8ac
mainline5.47.3b1fffc273112
cip/5.105.45.10.271-cip787e4bfc5f0b66
cip/5.10-rt5.45.10.272-cip79-rt357e4bfc5f0b66
cip/6.15.46.1.189-cip61609c4378f212
cip/6.1-rt5.46.1.189-cip61-rt32609c4378f212
cip/6.125.46.12.111-cip3244cd4674d9aa

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.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35