6.3
MEDIUM CVSS 3.1
CVE-2023-52581
netfilter: nf_tables: fix memleak when more than 255 elements expired
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.

INFO

Published Date :

March 2, 2024, 10:15 p.m.

Last Modified :

April 4, 2025, 2:46 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2023-52581 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM 134c704f-9b21-4f2e-91b3-4a467353bcc0
Solution
This addresses a memory leak in the Linux kernel's netfilter nf_tables component.
  • Update the Linux kernel to address the vulnerability.
  • Reboot the system after the update.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-52581 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-52581 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-52581 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-52581 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 04, 2025

    Action Type Old Value New Value
    Added CWE CWE-401
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.6:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.6:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.5 up to (excluding) 6.5.6
    Added Reference Type CVE: https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171 Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8
    Added Reference https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14
    Added Reference https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125
    Added Reference https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07
    Added Reference https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01
    Added Reference https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5
    Added Reference https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 07, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 CISA-ADP AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 16, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/7cf055b43756b10aa2b851c927c940f5ed652125 [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 04, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/a995a68e8a3b48533e47c856865d109a1f1a9d01 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/09c85f2d21ab6b5acba31a037985b13e8e6565b8 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ef99506eaf1dc31feff1adfcfd68bc5535a22171 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7e5d732e6902eb6a37b35480796838a145ae5f07 [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Mar. 02, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Linux https://git.kernel.org/stable/c/4aea243b6853d06c1d160a9955b759189aa02b14 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/cf5000a7787cbc10341091d37245a42c119d26c5 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact