CVE-2024-27064 netfilter: nf_tables: Fix a memory leak in nf_tables_updchain
A memory leak in the Linux kernel's nf_tables subsystem allows attackers to cause a denial of service by exhausting system memory.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-27064?
CVE-2024-27064 is a medium-severity denial of service vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2024-27064?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-27064?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-27064 being exploited?
There is no known exploitation of CVE-2024-27064 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-27064, DEBIAN-CVE-2024-27064, GHSA-5mg2-xwpp-qvmq, UBUNTU-CVE-2024-27064.