What’s Vulnerable › Vulnerabilities

CVE-2024-27064: netfilter: nf_tables: Fix a memory leak in nf_tables_updchain

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix a memory leak in nf_tables_updchain If nft_netdev_register_hooks() fails, the memory associated with nft_stats is not freed, causing a memory leak. This patch fixes it by moving nft_stats_alloc() down after nft_netdev_register_hooks() succeeds.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.4, 6.6.23, 6.7.11, 6.8.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-27064 or the next vulnerability affects your stack