CVE-2023-54035
netfilter: nf_tables: fix underflow in chain reference counter
Check your servers for CVE-2023-54035
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54035 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.64% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 35651fde1a7bb54dde0a46d35cd0d7136869ae86, before b068314fd8ce751a7f906e55bb90f3551815f1a0 affected from 628bd3e49cba1c066228e23d71a852c23e26da73, before 9c959671abc7d4ffdf34eed10c64492d43cb6a3c affected from 628bd3e49cba1c066228e23d71a852c23e26da73, before b389139f12f287b8ed2e2628b72df89a081f0b59 affected bc9f791d2593f17e39f87c6e2b3a36549a3705b1 affected 3c7ec098e3b588434a8b07ea9b5b36f04cef1f50 affected a136b7942ad2a50de708f76ea299ccb45ac7a7f9 affected 25aa2ad37c2162be1c0bc4fe6397f7e4c13f00f8 affected d60be2da67d172aecf866302c91ea11533eca4d9 affected dc7cdf8cbcbf8b13de1df93f356ec04cdeef5c41 affected from 4.19.316, before 4.20 affected from 5.4.262, before 5.5 affected from 5.10.188, before 5.11 affected from 5.15.121, before 5.16 affected from 6.3.10, before 6.4
Other versions: unaffected
|
| Linux |
affected 6.4 unaffected before 6.4 unaffected from 6.4.4 up to and including 6.4.* unaffected 6.5 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54035 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54035
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54035
trivy image --scanners vuln IMAGE | grep CVE-2023-54035
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b068314fd8ce751a7f906e55bb90f3551815f1a0 git.kernel.org
- https://git.kernel.org/stable/c/9c959671abc7d4ffdf34eed10c64492d43cb6a3c git.kernel.org
- https://git.kernel.org/stable/c/b389139f12f287b8ed2e2628b72df89a081f0b59 git.kernel.org
Source: the record CVE-2023-54035 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse