CVE-2021-47312

netfilter: nf_tables: Fix dereference of null pointer flow

Medium · published May 21, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.9
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00220 · 11.9th percentile
Published
2024-05-21T14:35Z
EPSS history
Timeline
  • 21 MAY 14:35Z
    netfilter: nf_tables: Fix dereference of null pointer flow
    cvelistv5