Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-27020
HistoryMay 01, 2024 - 5:30 a.m.

CVE-2024-27020 netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()

2024-05-0105:30:15
Linux
github.com
1
linux kernel vulnerability fix nf_tables data-race netfilter nf_tables_expressions list_for_each_entry_rcu() rcu_read_lock()

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%

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

netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()

nft_unregister_expr() can concurrent with __nft_expr_type_get(),
and there is not any protection when iterate over nf_tables_expressions
list in __nft_expr_type_get(). Therefore, there is potential data-race
of nf_tables_expressions list entry.

Use list_for_each_entry_rcu() to iterate over nf_tables_expressions
list in __nft_expr_type_get(), and use rcu_read_lock() in the caller
nft_expr_type_get() to protect the entire type query process.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "939109c0a8e2",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "b38a133d37fa",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "934e66e231cf",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "0b6de00206ad",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "8d56bad42ac4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "a9ebf340d123",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "01f1a678b05a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "ef1f7df9170d",
        "lessThan": "f969eb84ce48",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "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": "3.13"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.13",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "4.19.313",
        "versionType": "custom",
        "lessThanOrEqual": "4.19.*"
      },
      {
        "status": "unaffected",
        "version": "5.4.275",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.216",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.157",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.88",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.29",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.8",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/netfilter/nf_tables_api.c"
    ],
    "defaultStatus": "affected"
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%