CVE-2023-54035
published high CVSS 3.1 · 7.8netfilter: nf_tables: fix underflow in chain reference counter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux35651fde1a7bb54dde0a46d35cd0d7136869ae86 to < b068314fd8ce751a7f906e55bb90f3551815f1a0 · 628bd3e49cba1c066228e23d71a852c23e26da73 to < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c · 628bd3e49cba1c066228e23d71a852c23e26da73 to < b389139f12f287b8ed2e2628b72df89a081f0b59 · bc9f791d2593f17e39f87c6e2b3a36549a3705b1 · 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50 · a136b7942ad2a50de708f76ea299ccb45ac7a7f9 · 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8 · d60be2da67d172aecf866302c91ea11533eca4d9 · dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41 · 4.19.316 to < 4.20 · 5.4.262 to < 5.5 · 5.10.188 to < 5.11 · 5.15.121 to < 5.16 · 6.3.10 to < 6.4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 6.4.4 through 6.4.* (unaffected · semver) · 6.5 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolaarch64 | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolppc64le | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftools390x | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftoolx86_64 | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoaarch64 | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfoppc64le | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfos390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfos390x | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfox86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | bpftool-debuginfox86_64 | Advisory build | 7.3.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernelaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernelaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernelppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernelppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernels390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernels390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernelsrc | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernelsrc | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernelx86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernelx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64kaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debugaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-debuginfoaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-develaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-devel-matchedaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modulesaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debug-modules-extraaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-debuginfoaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-develaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-devel-matchedaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modulesaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-64k-modules-extraaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-abi-stablelistsnoarch | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-abi-stablelistsnoarch | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-coreppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-cores390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-cores390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-corex86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-corex86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugs390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugs390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugx86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debugx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-coreppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-cores390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-cores390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-corex86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-corex86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfoppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfos390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfos390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfox86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-debuginfox86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devels390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devels390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develx86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-develx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matcheds390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matcheds390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedx86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-devel-matchedx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesaarch64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesaarch64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesppc64le | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesppc64le | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-moduless390x | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-moduless390x | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesx86_64 | Advisory build | 5.14.0-427.13.1.el9_4 | RHSA-2024:2394 |
| Red Hat Enterprise Linux | RHEL-9 | kernel-debug-modulesx86_64 | Advisory build | 5.14.0-70.101.1.el9_0 | RHSA-2024:3421 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix underflow in chain reference counter Set element addition error path decrements reference counter on chains twice: once on element release and again via nft_data_release(). Then, d6b478666ffa ("netfilter: nf_tables: fix underflow in object reference counter") incorrectly fixed this by removing the stateful object reference count decrement. Restore the stateful object decrement as in b91d90368837 ("netfilter: nf_tables: fix leaking object reference count") and let nft_data_release() decrement the chain reference counter, so this is done only once.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached via the nfnetlink/netlink socket interface (NFT_MSG_NEWSETELEM), a local kernel API with no remote/network reachability. AC:L - The attacker deterministically reaches the buggy error path (e.g., inserting a duplicate map element to force -EEXIST) and controls how many times to repeat it; no uncontrolled conditions are involved. PR:L - nf_tables requires CAP_NET_ADMIN, but an unprivileged user obtains this in a new network namespace via unshare -Urn, so only low privileges are needed. UI:N - The counter underflow and subsequent chain deletion are triggered entirely by the attacker's own netlink operations, with no victim interaction required. S:U - The impact stays within the kernel's security authority (local privilege escalation), not crossing into a separate security scope such as a hypervisor boundary. C:H - The chain refcount underflow leads to a use-after-free of the chain object, letting the attacker reclaim the freed slot and read sensitive kernel memory. I:H - The use-after-free provides heap write primitives via reclaiming the freed chain object, enabling arbitrary memory corruption and privilege escalation. A:H - Freeing a still-referenced chain leaves dangling pointers that cause use-after-free access and kernel panic/oops.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 35651fde1a7bb54dde0a46d35cd0d7136869ae86 to < b068314fd8ce751a7f906e55bb90f3551815f1a0 (affected · git)628bd3e49cba1c066228e23d71a852c23e26da73 to < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c (affected · git)628bd3e49cba1c066228e23d71a852c23e26da73 to < b389139f12f287b8ed2e2628b72df89a081f0b59 (affected · git)bc9f791d2593f17e39f87c6e2b3a36549a3705b1 (affected · git)3c7ec098e3b588434a8b07ea9b5b36f04cef1f50 (affected · git)a136b7942ad2a50de708f76ea299ccb45ac7a7f9 (affected · git)25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8 (affected · git)d60be2da67d172aecf866302c91ea11533eca4d9 (affected · git)dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41 (affected · git)4.19.316 to < 4.20 (affected · semver)5.4.262 to < 5.5 (affected · semver)5.10.188 to < 5.11 (affected · semver)5.15.121 to < 5.16 (affected · semver)6.3.10 to < 6.4 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.4 (affected)0 to < 6.4 (unaffected · semver)6.4.4 through 6.4.* (unaffected · semver)6.5 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
netfilter: nf_tables: fix underflow in chain reference counter
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 38687f47a640b5347c8b688451133b76b60ffc1c7ffa2956a6217a5291d914c9
- Ingested
- 23 Sep 2026, 08:15:07 UTC
- Source record
- Official CVE record