CVE-2026-98030: net: dsa: bcm_sf2: bound the CFP rule dump by the caller's buffer size

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: bcmsf2: bound the CFP rule dump by the caller's buffer size

bcmsf2cfprulegetall() walks the whole cfp.unique bitmap into rulelocs[] without consulting nfc->rulecnt, which is how many entries the caller had room for. ETHTOOLGRXCLSRLALL requires no CAPNETADMIN and the ioctl sizes the buffer from the rulecnt userspace passes in, so once an admin has installed CFP rules any user can ask for fewer slots than there are rules and run off the end of the allocation. A rulecnt of 0 leaves the buffer pointer NULL and the walk dereferences it.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:23 AM
Data Sourced
via MITRE·10:23 AM
Description

Frequently Asked Questions

1

Who can trigger the vulnerable code path?

Any local user can issue ETHTOOL_GRXCLSRLALL without CAP_NET_ADMIN. Exploitation also depends on an administrator having installed CFP rules.

2

What input causes the out-of-bounds access?

A caller can request fewer rule slots than the number of installed CFP rules, causing the rule walk to exceed the caller-sized allocation. Supplying rule_cnt as 0 leaves the buffer pointer NULL and causes it to be dereferenced.

3

Is an administrative attacker required?

No. Installing CFP rules requires prior administrative action, but the vulnerable query itself does not require CAP_NET_ADMIN and can be made by an unprivileged user.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203