eth: nfp: drop the replaced rule from the list when reprogramming fails
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.111, 6.18.53, 7.2.7
- CVEs
- CVE-2026-98028
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 23:02 UTC · Revision 1
Source evidence
eth: nfp: drop the replaced rule from the list when reprogramming fails
core-osv · Original sourcePublished 25 Sept 2026, 10:23 UTC
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.
osv:CVE-2026-98028
Kernel
Fixed versions: 6.12.111, 6.18.53, 7.2.7
Complete source record
{
"id": "433347b3db8c6b1a7dc818d38f38f810a8eeaacf31924fdcd11cb7f79c5b2f55",
"url": "https://osv.dev/vulnerability/CVE-2026-98028",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "eth: nfp: drop the replaced rule from the list when reprogramming fails",
"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.",
"evidence": "osv:CVE-2026-98028",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.111",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.53",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98028",
"aliases": [
"CVE-2026-98028"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9eb03bb1c035ff6e2c3a34046419446588253dda"
},
{
"fixed": "603b70093f729f52a37544b48679903cad834856"
},
{
"fixed": "edaec279f59f801a05b751df475ed71a0a68c88a"
},
{
"fixed": "552e528a7d85cbe088b2ae4f78194713975b46cf"
},
{
"fixed": "108bb2142e3a12c9ad625ad662973127a113ddc6"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98028.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.8.0"
},
{
"fixed": "6.12.111"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98028.json"
}
}
],
"modified": "2026-10-28T02:30:24.125488513Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/108bb2142e3a12c9ad625ad662973127a113ddc6",
"https://git.kernel.org/stable/c/552e528a7d85cbe088b2ae4f78194713975b46cf",
"https://git.kernel.org/stable/c/603b70093f729f52a37544b48679903cad834856",
"https://git.kernel.org/stable/c/edaec279f59f801a05b751df475ed71a0a68c88a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98028.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98028",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98028.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98028",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490679,
"published_at": "2026-09-25T10:23:45.737+00:00"
}