{"id":"CVE-2026-98028","state":"PUBLISHED","title":"eth: nfp: drop the replaced rule from the list when reprogramming fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: nfp: drop the replaced rule from the list when reprogramming fails\n\nnfp_net_fs_add() replaces an existing rule by deleting it from the\nhardware, decrementing nn->fs.count and programming the new one.  If\nnfp_net_fs_add_hw() fails the old entry stays on nn->fs.list - only the\nsuccess path reaches list_replace() - so the list is one longer than\nnn->fs.count, and it advertises a rule whose hardware entry has already\nbeen torn down.\n\nnn->fs.count is what ETHTOOL_GRXCLSRLCNT reports, so userspace then sizes\nits buffer one entry short of what the GRXCLSRLALL walk wants to write.\nThat used to overwrite one u32 past the allocation; since the walk is\nbounded it is a permanent -EMSGSIZE instead, as nothing ever resyncs the\ncounter.","publishedAt":"2026-09-25T10:23:45.737Z","updatedAt":"2026-10-19T09:12:33.311Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"603b70093f729f52a37544b48679903cad834856","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"edaec279f59f801a05b751df475ed71a0a68c88a","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"552e528a7d85cbe088b2ae4f78194713975b46cf","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"108bb2142e3a12c9ad625ad662973127a113ddc6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c"]}],"references":["https://git.kernel.org/stable/c/603b70093f729f52a37544b48679903cad834856","https://git.kernel.org/stable/c/edaec279f59f801a05b751df475ed71a0a68c88a","https://git.kernel.org/stable/c/552e528a7d85cbe088b2ae4f78194713975b46cf","https://git.kernel.org/stable/c/108bb2142e3a12c9ad625ad662973127a113ddc6"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98028.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98028","state":"PUBLISHED","datePublished":"2026-09-25T10:23:45.737Z","dateUpdated":"2026-10-19T09:12:33.311Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:19:56.070Z"},"containers":{"cna":{"title":"eth: nfp: drop the replaced rule from the list when reprogramming fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\neth: nfp: drop the replaced rule from the list when reprogramming fails\n\nnfp_net_fs_add() replaces an existing rule by deleting it from the\nhardware, decrementing nn->fs.count and programming the new one.  If\nnfp_net_fs_add_hw() fails the old entry stays on nn->fs.list - only the\nsuccess path reaches list_replace() - so the list is one longer than\nnn->fs.count, and it advertises a rule whose hardware entry has already\nbeen torn down.\n\nnn->fs.count is what ETHTOOL_GRXCLSRLCNT reports, so userspace then sizes\nits buffer one entry short of what the GRXCLSRLALL walk wants to write.\nThat used to overwrite one u32 past the allocation; since the walk is\nbounded it is a permanent -EMSGSIZE instead, as nothing ever resyncs the\ncounter."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"603b70093f729f52a37544b48679903cad834856","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"edaec279f59f801a05b751df475ed71a0a68c88a","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"552e528a7d85cbe088b2ae4f78194713975b46cf","versionType":"git"},{"version":"9eb03bb1c035ff6e2c3a34046419446588253dda","status":"affected","lessThan":"108bb2142e3a12c9ad625ad662973127a113ddc6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.111","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/603b70093f729f52a37544b48679903cad834856"},{"url":"https://git.kernel.org/stable/c/edaec279f59f801a05b751df475ed71a0a68c88a"},{"url":"https://git.kernel.org/stable/c/552e528a7d85cbe088b2ae4f78194713975b46cf"},{"url":"https://git.kernel.org/stable/c/108bb2142e3a12c9ad625ad662973127a113ddc6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:12:33.311Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.111"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}