{"id":"CVE-2026-98028","aliases":["CVE-2026-98028"],"related":[],"kind":"vulnerability","state":"published","title":"eth: nfp: drop the replaced rule from the list when reprogramming fails","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-25T10:23:45.737Z","modified":"2026-10-19T10:17:56.787Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9eb03bb1c035ff6e2c3a34046419446588253dda","fixed":"603b70093f729f52a37544b48679903cad834856","status":"affected"},{"type":"git","introduced":"9eb03bb1c035ff6e2c3a34046419446588253dda","fixed":"edaec279f59f801a05b751df475ed71a0a68c88a","status":"affected"},{"type":"git","introduced":"9eb03bb1c035ff6e2c3a34046419446588253dda","fixed":"552e528a7d85cbe088b2ae4f78194713975b46cf","status":"affected"},{"type":"git","introduced":"9eb03bb1c035ff6e2c3a34046419446588253dda","fixed":"108bb2142e3a12c9ad625ad662973127a113ddc6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/603b70093f729f52a37544b48679903cad834856","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/edaec279f59f801a05b751df475ed71a0a68c88a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/552e528a7d85cbe088b2ae4f78194713975b46cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/108bb2142e3a12c9ad625ad662973127a113ddc6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98028","url":"https://www.cve.org/CVERecord?id=CVE-2026-98028","licence":"CVE Terms of Use","modified":"2026-10-19T09:12:33.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98028","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98028","licence":"Public domain","modified":"2026-10-19T10:17:56.787Z"}],"updatedAt":"2026-11-25T22:59:41.029Z","epss":{"score":0.00168,"percentile":0.06347,"date":"2026-12-01T12:00:22.000Z"}}