CVE-2021-47312

published 21 May 2024 · updated 11 May 2026

netfilter: nf_tables: Fix dereference of null pointer flow

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 70a5a1950cca02c5cd161bb3846b4d983eed97d3, Kernel 4ca041f919f13783b0b03894783deee00dbca19a and Kernel 5.13.5.

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix dereference of null pointer flow In the case where chain->flags & NFT_CHAIN_HW_OFFLOAD is false then nft_flow_rule_create is not called and flow is NULL. The subsequent error handling execution via label err_destroy_flow_rule will lead to a null pointer dereference on flow when calling nft_flow_rule_destroy. Since the error path to err_destroy_flow_rule has to cater for null and non-null flows, only call nft_flow_rule_destroy if flow is non-null to fix this issue. Addresses-Coverity: ("Explicity null dereference")

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=09b1f676e2e0bbff67c568672c565c6f31470157 <70a5a1950cca02c5cd161bb3846b4d983eed97d3, >=3c5e44622011b9ea21bd425875dcccfc9a158f5f <4ca041f919f13783b0b03894783deee00dbca19a, >=5.13.2 <5.13.570a5a1950cca02c5cd161bb3846b4d983eed97d3, 4ca041f919f13783b0b03894783deee00dbca19a, 5.13.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47312 severity on Zeptric[![CVE-2021-47312](https://zeptric.io/badge/cve/CVE-2021-47312.svg)](https://zeptric.io/cve/CVE-2021-47312)