CVE-2023-53304
netfilter: nft_set_rbtree: fix overlap expiration walk
Check your servers for CVE-2023-53304
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-53304 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: nft_set_rbtree: fix overlap expiration walk
The lazy gc on insert that should remove timed-out entries fails to release the other half of the interval, if any.
Can be reproduced with tests/shell/testcases/sets/0044interval_overlap_0 in nftables.git and kmemleak enabled kernel.
Second bug is the use of rbe_prev vs. prev pointer. If rbe_prev() returns NULL after at least one iteration, rbe_prev points to element that is not an end interval, hence it should not be removed.
Lastly, check the genmask of the end interval if this is active in the current generation.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.31% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7ab87a326f20c52ff4d9972052d085be951c704b, before 8284a79136c384059e85e278da2210b809730287 affected from 181859bdfb9734aca449512fccaee4cacce64aed, before acaee227cf79c45a5d2d49c3e9a66333a462802c affected from 4aacf3d78424293e318c616016865380b37b9cc5, before 893cb3c3513cf661a0ff45fe0cfa83fe27131f76 affected from 2bf1435fa19d2c58054391b3bba40d5510a5758c, before 50cbb9d195c197af671869c8cadce3bd483735a0 affected from 318cb24a4c3fce8140afaf84e4d45fcb76fb280b, before 89a4d1a89751a0fbd520e64091873e19cc0979e8 affected from c9e6978e2725a7d4b6cd23b2facd3f11422c0643, before cd66733932399475fe933cb3ec03e687ed401462 affected from c9e6978e2725a7d4b6cd23b2facd3f11422c0643, before f718863aca469a109895cb855e6b81fff4827d71 affected from 5.10.166, before 5.10.190 affected from 5.15.91, before 5.15.124 affected from 6.1.9, before 6.1.43
Other versions: unaffected
|
| Linux |
affected 6.2 unaffected before 6.2 unaffected from 5.10.190 up to and including 5.10.* unaffected from 5.15.124 up to and including 5.15.* unaffected from 6.1.43 up to and including 6.1.* unaffected from 6.4.8 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-53304 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53304
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-53304
trivy image --scanners vuln IMAGE | grep CVE-2023-53304
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/8284a79136c384059e85e278da2210b809730287 git.kernel.org
- https://git.kernel.org/stable/c/acaee227cf79c45a5d2d49c3e9a66333a462802c git.kernel.org
- https://git.kernel.org/stable/c/893cb3c3513cf661a0ff45fe0cfa83fe27131f76 git.kernel.org
- https://git.kernel.org/stable/c/50cbb9d195c197af671869c8cadce3bd483735a0 git.kernel.org
- https://git.kernel.org/stable/c/89a4d1a89751a0fbd520e64091873e19cc0979e8 git.kernel.org
- https://git.kernel.org/stable/c/cd66733932399475fe933cb3ec03e687ed401462 git.kernel.org
- https://git.kernel.org/stable/c/f718863aca469a109895cb855e6b81fff4827d71 git.kernel.org
Source: the record CVE-2023-53304 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse