Lucene search

K
cvelistLinuxCVELIST:CVE-2024-27064
HistoryMay 01, 2024 - 1:04 p.m.

CVE-2024-27064 netfilter: nf_tables: Fix a memory leak in nf_tables_updchain

2024-05-0113:04:05
Linux
www.cve.org
4
linux kernel
netfilter
nf_tables_updchain
memory leak
nft_netdev_register_hooks
nft_stats_alloc

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_tables: Fix a memory leak in nf_tables_updchain

If nft_netdev_register_hooks() fails, the memory associated with
nft_stats is not freed, causing a memory leak.

This patch fixes it by moving nft_stats_alloc() down after
nft_netdev_register_hooks() succeeds.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/netfilter/nf_tables_api.c"
    ],
    "versions": [
      {
        "version": "b9703ed44ffb",
        "lessThan": "79846fdcc548",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b9703ed44ffb",
        "lessThan": "4e4623a4f6e1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b9703ed44ffb",
        "lessThan": "e77a6b53a3a5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b9703ed44ffb",
        "lessThan": "7eaf837a4eb5",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/netfilter/nf_tables_api.c"
    ],
    "versions": [
      {
        "version": "6.4",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.4",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.2",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

15.5%