CVE-2021-47312
published medium CVSS 3.1 · 5.5netfilter: nf_tables: Fix dereference of null pointer flow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux09b1f676e2e0bbff67c568672c565c6f31470157 to < 70a5a1950cca02c5cd161bb3846b4d983eed97d3 · 3c5e44622011b9ea21bd425875dcccfc9a158f5f to < 4ca041f919f13783b0b03894783deee00dbca19a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.13.2 to < 5.13.5 · Other versions: unaffected | Affected | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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")
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 09b1f676e2e0bbff67c568672c565c6f31470157 to < 70a5a1950cca02c5cd161bb3846b4d983eed97d3 (affected · git)3c5e44622011b9ea21bd425875dcccfc9a158f5f to < 4ca041f919f13783b0b03894783deee00dbca19a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.13.2 to < 5.13.5 (affected · semver)Default: unaffected | Linux · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
2Provider assertions
3Linux · cna
netfilter: nf_tables: Fix dereference of null pointer flow
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- acd154b3b6f214e35cfbdf93444cc05ecf9a9e521801a8dc253171a6b223508f
- Ingested
- 23 Sep 2026, 07:57:11 UTC
- Source record
- Official CVE record