{"id":"CVE-2021-47312","published":"2024-05-21T14:35:29Z","modified":"2026-05-11T13:52:03Z","title":"netfilter: nf_tables: Fix dereference of null pointer flow","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_tables: Fix dereference of null pointer flow\n\nIn the case where chain->flags & NFT_CHAIN_HW_OFFLOAD is false then\nnft_flow_rule_create is not called and flow is NULL. The subsequent\nerror handling execution via label err_destroy_flow_rule will lead\nto a null pointer dereference on flow when calling nft_flow_rule_destroy.\nSince the error path to err_destroy_flow_rule has to cater for null\nand non-null flows, only call nft_flow_rule_destroy if flow is non-null\nto fix this issue.\n\nAddresses-Coverity: (\"Explicity null dereference\")","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00287,"percentile":0.13874,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/70a5a1950cca02c5cd161bb3846b4d983eed97d3","tags":[]},{"url":"https://git.kernel.org/stable/c/4ca041f919f13783b0b03894783deee00dbca19a","tags":[]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":2.77},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 09b1f676e2e0bbff67c568672c565c6f31470157, < 70a5a1950cca02c5cd161bb3846b4d983eed97d3",">= 3c5e44622011b9ea21bd425875dcccfc9a158f5f, < 4ca041f919f13783b0b03894783deee00dbca19a"]},{"vendor":"Linux","product":"Linux","versions":[">= 5.13.2, < 5.13.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-29T18:11:18.013824Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34317","exploited":false,"provenance":"source"}}