All reports
Medium

kernel: netfilter: nf_tables: Fix dereference of null pointer flow

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-47312

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-20

Description

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")

A vulnerability was found in the nf_tables function in the Linux kernel's netfilter subsystem. When certain conditions are met, a flow pointer can become NULL, leading to a crash when the system tries to access it during error handling. This can disrupt network filtering operations.