CVE-2026-98029

eth: nfp: bound the ntuple rule dump by the caller's buffer size

State
Published
Severity
7.0 High
Published
Sep 25, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

eth: nfp: bound the ntuple rule dump by the caller's buffer size

nfp_net_get_fs_loc() dumps every entry of nn->fs.list into rule_locs[] without consulting cmd->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 flow steering 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.

Bail out with -EMSGSIZE when the buffer fills up, the way the other ntuple capable drivers do, and report how many locations were filled so a shrinking rule list does not leave the caller reading stale slots.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9eb03bb1c035ff6e2c3a34046419446588253dda to before 82812583b9c69c241da6da4186f14e9df2516488Affected
  • 9eb03bb1c035ff6e2c3a34046419446588253dda to before a7e023c63e855761c1426cee8d17c2bca32aa339Affected
  • 9eb03bb1c035ff6e2c3a34046419446588253dda to before ecebfdaab72a504c10f4907bd00fc3b705ec3b12Affected
  • 9eb03bb1c035ff6e2c3a34046419446588253dda to before f1986bf87b0709c95126fe196cf39e5b8c8453a1Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.12.111 through 6.12.*Not affected
  • 6.18.53 through 6.18.*Not affected
  • 7.2.7 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.