{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()\n\nnft_unregister_expr() can concurrent with __nft_expr_type_get(),\nand there is not any protection when iterate over nf_tables_expressions\nlist in __nft_expr_type_get(). Therefore, there is potential data-race\nof nf_tables_expressions list entry.\n\nUse list_for_each_entry_rcu() to iterate over nf_tables_expressions\nlist in __nft_expr_type_get(), and use rcu_read_lock() in the caller\nnft_expr_type_get() to protect the entire type query process."
            }
         ],
         "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": "ef1f7df9170d",
                     "lessThan": "939109c0a8e2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "b38a133d37fa",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "934e66e231cf",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "0b6de00206ad",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "8d56bad42ac4",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "a9ebf340d123",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "01f1a678b05a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "ef1f7df9170d",
                     "lessThan": "f969eb84ce48",
                     "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": "3.13",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.13",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.313",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.275",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.216",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.157",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.88",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6.29",
                     "lessThanOrEqual": "6.6.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.8.8",
                     "lessThanOrEqual": "6.8.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.9",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/939109c0a8e2a006a6cc8209e262d25065f4403a"
            },
            {
               "url": "https://git.kernel.org/stable/c/b38a133d37fa421c8447b383d788c9cc6f5cb34c"
            },
            {
               "url": "https://git.kernel.org/stable/c/934e66e231cff2b18faa2c8aad0b8cec13957e05"
            },
            {
               "url": "https://git.kernel.org/stable/c/0b6de00206adbbfc6373b3ae38d2a6f197987907"
            },
            {
               "url": "https://git.kernel.org/stable/c/8d56bad42ac4c43c6c72ddd6a654a2628bf839c5"
            },
            {
               "url": "https://git.kernel.org/stable/c/a9ebf340d123ae12582210407f879d6a5a1bc25b"
            },
            {
               "url": "https://git.kernel.org/stable/c/01f1a678b05ade4b1248019c2dcca773aebbeb7f"
            },
            {
               "url": "https://git.kernel.org/stable/c/f969eb84ce482331a991079ab7a5c4dc3b7f89bf"
            }
         ],
         "title": "netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2024-27020",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
