CVE-2023-52581

netfilter: nf_tables: fix memleak when more than 255 elements expired

MEDIUM
6.3
CVSS Score
Published: March 2, 2024 at 09:59 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix memleak when more than 255 elements expired When more than 255 elements expired we're supposed to switch to a new gc container structure. This never happens: u8 type will wrap before reaching the boundary and nft_trans_gc_space() always returns true. This means we recycle the initial gc container structure and lose track of the elements that came before. While at it, don't deref 'gc' after we've passed it to call_rcu.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.4.116.4.11 ≤ v < 6.56.5 ≤ v < 6.5.66.5 ≤ v < 6.6448be0774882f95a74fa5eb7519761152add601b5f68718b34a531a556f2f50300ead2862278da266.4.116.6 rc16.6 rc2624f190b5742a1527cd938295caa8dc5281d4cd8da1b048f9a501d3d7d38c188ba09d7d0d5b8c27bbdb3b65aa91aa0a32b212f27780b28987f2d94fd19e8bf3ea4114dd21fc35da21f398203d7f7df1ea3eb9f2192e4fc33b795673e56c97a21987f868
Vendor states this is fixed in 09c85f2d21ab6b5acba31a037985b13e8e6565b8 (fixed)
Vendor states this is fixed in 4aea243b6853d06c1d160a9955b759189aa02b14 (fixed)
Vendor states this is fixed in 7cf055b43756b10aa2b851c927c940f5ed652125 (fixed)
Vendor states this is fixed in 7e5d732e6902eb6a37b35480796838a145ae5f07 (fixed)
Vendor states this is fixed in a995a68e8a3b48533e47c856865d109a1f1a9d01 (fixed)
Vendor states this is fixed in cf5000a7787cbc10341091d37245a42c119d26c5 (fixed)
Vendor states this is fixed in ef99506eaf1dc31feff1adfcfd68bc5535a22171 (fixed)
Vendor states this is fixed in 6.5 (unaffected)
Vendor states this is fixed in 6.5.6 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.3MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card