eth: nfp: drop the replaced rule from the list when reprogramming fails
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.111, 6.18.53, 7.2.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: eth: nfp: drop the replaced rule from the list when reprogramming fails nfp_net_fs_add() replaces an existing rule by deleting it from the hardware, decrementing nn->fs.count and programming the new one. If nfp_net_fs_add_hw() fails the old entry stays on nn->fs.list - only the success path reaches list_replace() - so the list is one longer than nn->fs.count, and it advertises a rule whose hardware entry has already been torn down. nn->fs.count is what ETHTOOL_GRXCLSRLCNT reports, so userspace then sizes its buffer one entry short of what the GRXCLSRLALL walk wants to write. That used to overwrite one u32 past the allocation; since the walk is bounded it is a permanent -EMSGSIZE instead, as nothing ever resyncs the counter.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 9eb03bb1c035ff6e2c3a34046419446588253dda · fixed in 603b70093f729f52a37544b48679903cad834856; From 9eb03bb1c035ff6e2c3a34046419446588253dda · fixed in edaec279f59f801a05b751df475ed71a0a68c88a; From 9eb03bb1c035ff6e2c3a34046419446588253dda · fixed in 552e528a7d85cbe088b2ae4f78194713975b46cf; From 9eb03bb1c035ff6e2c3a34046419446588253dda · fixed in 108bb2142e3a12c9ad625ad662973127a113ddc6
- Linux Linux
6.8
- KernelLinux
From 6.8.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53; From 6.19.0 · fixed in 7.2.7