Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2023-52581
HistoryMar 02, 2024 - 9:59 p.m.

CVE-2023-52581 netfilter: nf_tables: fix memleak when more than 255 elements expired

2024-03-0221:59:47
Linux
github.com
13
netfilter
nf_tables
vulnerability
memory leak
linux kernel
cve-2023-52581
gc container
elements expired

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "8da1b048f9a5",
        "lessThan": "7cf055b43756",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "bbdb3b65aa91",
        "lessThan": "a995a68e8a3b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "448be0774882",
        "lessThan": "09c85f2d21ab",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "d19e8bf3ea41",
        "lessThan": "ef99506eaf1d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ea3eb9f2192e",
        "lessThan": "7e5d732e6902",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5f68718b34a5",
        "lessThan": "4aea243b6853",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5f68718b34a5",
        "lessThan": "cf5000a7787c",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "include/net/netfilter/nf_tables.h",
      "net/netfilter/nf_tables_api.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.5"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.5",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.5.6",
        "versionType": "custom",
        "lessThanOrEqual": "6.5.*"
      },
      {
        "status": "unaffected",
        "version": "6.6",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "include/net/netfilter/nf_tables.h",
      "net/netfilter/nf_tables_api.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial