CVE-2023-54035
netfilter: nf_tables: fix underflow in chain reference counter
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 35651fde1a7bb54dde0a46d35cd0d7136869ae86, < b068314fd8ce751a7f906e55bb90f3551815f1a0; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b3a36549a3705b1; 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50; a136b7942ad2a50de708f76ea299ccb45ac7a7f9; 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8; d60be2da67d172aecf866302c91ea11533eca4d9; dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41; >= 4.19.316, < 4.20; …
- Anyone running Linux 6.4
Vulnerability facts
- Affected
- Linux >= 35651fde1a7bb54dde0a46d35cd0d7136869ae86, < b068314fd8ce751a7f906e55bb90f3551815f1a0; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b3a36549a3705b1; 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50; a136b7942ad2a50de708f76ea299ccb45ac7a7f9; 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8; d60be2da67d172aecf866302c91ea11533eca4d9; dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41; >= 4.19.316, < 4.20; …; Linux 6.4
- Fixed in
- Linux 9c959671abc7d4ffdf34eed10c64492d43cb6a3c, Linux 4.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 35651fde1a7bb54dde0a46d35cd0d7136869ae86, < b068314fd8ce751a7f906e55bb90f3551815f1a0; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b3a36549a3705b1; 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50; a136b7942ad2a50de708f76ea299ccb45ac7a7f9; 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8; d60be2da67d172aecf866302c91ea11533eca4d9; dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41; >= 4.19.316, < 4.20; … | — | cvelist |
| Linux | 6.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-54035. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-54035.md Affected: Linux >= 35651fde1a7bb54dde0a46d35cd0d7136869ae86, < b068314fd8ce751a7f906e55bb90f3551815f1a0; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b… Fixed in: Linux 9c959671abc7d4ffdf34eed10c64492d43cb6a3c, Linux 4.20 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2023-54035 being exploited?
There is no confirmed exploitation: CVE-2023-54035 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-54035?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-54035?
Linux >= 35651fde1a7bb54dde0a46d35cd0d7136869ae86, < b068314fd8ce751a7f906e55bb90f3551815f1a0; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < 9c959671abc7d4ffdf34eed10c64492d43cb6a3c; >= 628bd3e49cba1c066228e23d71a852c23e26da73, < b389139f12f287b8ed2e2628b72df89a081f0b59; bc9f791d2593f17e39f87c6e2b3a36549a3705b1; 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50; a136b7942ad2a50de708f76ea299ccb45ac7a7f9; 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8; d60be2da67d172aecf866302c91ea11533eca4d9; dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41; >= 4.19.316, < 4.20; …; Linux 6.4.
Is there a fix for CVE-2023-54035?
Yes. Fixed in Linux 9c959671abc7d4ffdf34eed10c64492d43cb6a3c, Linux 4.20. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-54035?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.