CVE Catalog

CVE-2026-98030

HighCVSS 7.0
Published: Updated: Translated: NVD NIST

Summary

A vulnerability in the Linux kernel DSA bcm_sf2 driver regarding unbounded CFP rule dump by caller's buffer size was fixed. The function bcm_sf2_cfp_rule_get_all() walks the whole cfp.unique bitmap without consulting nfc->rule_cnt, allowing out-of-bounds access. The flaw is reachable without CAP_NET_ADMIN.

Risk Assessment

The flaw allows an unprivileged user to trigger a buffer overflow and potentially execute code in kernel context. It affects systems with CFP rules installed in the bcm_sf2 driver.

Recommendation

Update the Linux kernel to a version with the fix. Restrict access to the ETHTOOL_GRXCLSRLALL interface for unprivileged users.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: net: dsa: bcm_sf2: bound the CFP rule dump by the caller's buffer size bcm_sf2_cfp_rule_get_all() walks the whole cfp.unique bitmap into rule_locs[] without consulting nfc->rule_cnt, which is how many 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 CFP 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS