CVE-2023-53304

netfilter: nft_set_rbtree: fix overlap expiration walk

Medium · published September 16, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
4.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00160 · 4.8th percentile
Published
2025-09-16T16:11Z
EPSS history
Timeline
  • 16 SEP 16:11Z
    netfilter: nft_set_rbtree: fix overlap expiration walk
    cvelistv5