Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98027 Overview
CVE-2026-98027 is an out-of-bounds write vulnerability in the Linux kernel's Marvell mv88e6xxx Distributed Switch Architecture (DSA) driver. The flaw resides in mv88e6xxx_get_rxnfc(), which handles the ETHTOOL_GRXCLSRLALL ioctl used to dump installed policy rules. The function reuses the caller-supplied rxnfc->rule_cnt field as a write index while walking the policy IDR, overwriting the buffer-size limit before it is checked. Any local user can trigger the walk once an administrator has installed policy rules, since ETHTOOL_GRXCLSRLALL does not require CAP_NET_ADMIN.
Critical Impact
A local unprivileged user can trigger an out-of-bounds kernel write or a NULL pointer dereference, leading to memory corruption, denial of service, or potential privilege escalation on systems using Marvell DSA switches.
Affected Products
- Linux kernel builds including the mv88e6xxx DSA driver prior to the fix commits
- Networking appliances and embedded systems using Marvell 88E6xxx switch families
- Distributions shipping affected stable kernel branches until backports land
Discovery Timeline
- 2026-09-25 - CVE-2026-98027 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98027
Vulnerability Analysis
The vulnerability sits in the ethtool receive network flow classification (RXNFC) path for the mv88e6xxx DSA driver. The ioctl ETHTOOL_GRXCLSRLALL lets userspace enumerate configured classifier rules. The kernel allocates an output buffer sized by the rule_cnt value supplied from userspace. Inside mv88e6xxx_get_rxnfc(), the driver walks the policy IDR and writes rule identifiers into that buffer using rxnfc->rule_cnt itself as the running index.
Because the write index overwrites the original limit on the first iteration, the function loses the caller's buffer capacity. Subsequent iterations continue walking without any bound and write past the end of the allocation. When userspace passes a rule_cnt of zero, no buffer is allocated at all and the pointer remains NULL, so the first write dereferences NULL in kernel context.
Root Cause
The root cause is improper state management during iteration: a single field serves both as the input capacity and the output write cursor. The upstream fix, present in commits 44cd4674, 7a683c2b, b1fffc27, and cda5ac8f, introduces a local counter so the caller's limit is preserved. When the counter reaches the limit, the walk aborts and returns -EMSGSIZE.
Attack Vector
Exploitation requires local code execution on a system that uses the mv88e6xxx driver and has at least one policy rule installed by an administrator. A low-privileged user then issues the ETHTOOL_GRXCLSRLALL ioctl with a crafted rule_cnt value smaller than the number of installed rules, or zero, to trigger the overflow or NULL dereference. No network access or user interaction is required. See the kernel commits (44cd467, 7a683c2, b1fffc2, and cda5ac8) for the exact patched code paths.
Detection Methods for CVE-2026-98027
Indicators of Compromise
- Unexpected kernel oops or panic referencing mv88e6xxx_get_rxnfc in the call stack
- NULL pointer dereference traces originating from the ethtool RXNFC path
- Slab or slub corruption reports on hosts running Marvell DSA switch drivers
Detection Strategies
- Audit kernel version strings across fleet inventory and flag hosts running mv88e6xxx builds predating the fix commits
- Enable KASAN or SLUB_DEBUG on test systems to surface out-of-bounds writes triggered by ethtool fuzzing
- Review auditd records for unusual ioctl invocations against network devices by non-root users
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log centrally and alert on BUG:, general protection fault, or NULL pointer dereference entries referencing DSA or ethtool
- Track installation of ethtool rx-flow-classifier rules on DSA-backed interfaces as an administrative baseline
- Correlate kernel crash telemetry with the local user context that invoked the preceding ioctl
How to Mitigate CVE-2026-98027
Immediate Actions Required
- Apply the stable kernel update containing commits 44cd4674, 7a683c2b, b1fffc27, or cda5ac8f for the branch in use
- Identify systems using the mv88e6xxx driver with lsmod | grep mv88e6xxx and prioritize patching
- Restrict shell and ioctl access on affected network appliances to trusted administrators only
Patch Information
The upstream fix changes mv88e6xxx_get_rxnfc() to count rule writes into a local variable instead of rxnfc->rule_cnt, preserving the caller's buffer-size limit for the duration of the walk. The function now returns -EMSGSIZE when the limit is reached. Patched commits are available at 44cd467, 7a683c2, b1fffc2, and cda5ac8.
Workarounds
- Avoid installing ethtool classifier policy rules on affected DSA interfaces until the kernel is patched, which removes the condition required to trigger the walk
- Enforce least-privilege shell access on devices exposing Marvell DSA switches to prevent untrusted local invocation of ETHTOOL_GRXCLSRLALL
- Unload the mv88e6xxx module on systems that do not require Marvell DSA functionality
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

