CVE-2021-47312

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

No configuration.

History

21 Nov 2024, 06:35

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/4ca041f919f13783b0b03894783deee00dbca19a - () https://git.kernel.org/stable/c/4ca041f919f13783b0b03894783deee00dbca19a -
References () https://git.kernel.org/stable/c/70a5a1950cca02c5cd161bb3846b4d983eed97d3 - () https://git.kernel.org/stable/c/70a5a1950cca02c5cd161bb3846b4d983eed97d3 -

05 Nov 2024, 15:35

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
CWE CWE-476
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: nf_tables: corrige la desreferencia del flujo de puntero null. En el caso de que chain->flags & NFT_CHAIN_HW_OFFLOAD sea falso, no se llama a nft_flow_rule_create y el flujo es NULL. La ejecución posterior del manejo de errores a través de la etiqueta err_destroy_flow_rule dará lugar a una desreferencia del puntero null en el flujo al llamar a nft_flow_rule_destroy. Dado que la ruta de error a err_destroy_flow_rule tiene que atender flujos nulos y no nulos, solo llame a nft_flow_rule_destroy si el flujo no es nulo para solucionar este problema. Direcciones-Cobertura: ("Desreferencia nula explícita")

21 May 2024, 15:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-21 15:15

Updated : 2024-11-21 06:35


NVD link : CVE-2021-47312

Mitre link : CVE-2021-47312

CVE.ORG link : CVE-2021-47312


JSON object : View

Products Affected

No product.

CWE
CWE-476

NULL Pointer Dereference