CVE-2023-53304 netfilter: nft_set_rbtree: fix overlap expiration walk
A null pointer dereference in the Linux kernel netfilter rbtree expiration logic can cause a system crash, requiring a kernel patch.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53304?
CVE-2023-53304 is a medium-severity vulnerability in Linux kernel, published on 16 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2023-53304?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53304?
Apply the vendor's patch.
Is CVE-2023-53304 being exploited?
There is no known exploitation of CVE-2023-53304 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53304, DEBIAN-CVE-2023-53304, GHSA-phm5-wwmp-pqvr, UBUNTU-CVE-2023-53304.