CVE-2024-42070 netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers
An attacker can leak pointer to chain object through registers due to missing validation in netfilter nf_tables.
- 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-42070?
CVE-2024-42070 is a medium-severity vulnerability in Linux kernel, published on 29 Jul 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: fully validate NFT_DATA_VALUE on store to data registers
register store validation for NFT_DATA_VALUE is conditional, however, the datatype is always either NFT_DATA_VALUE or NFT_DATA_VERDICT. This only requires a new helper function to infer the register type from the set datatype so this conditional check can be removed. Otherwise, pointer to chain object can be leaked through the registers.
Weakness: CWE-401
Which versions are affected by CVE-2024-42070?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42070?
Apply the vendor's patch.
Is CVE-2024-42070 being exploited?
There is no known exploitation of CVE-2024-42070 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-47154, BELL-CVE-2024-42070, DEBIAN-CVE-2024-42070, GHSA-5h8j-93h4-mm7v, UBUNTU-CVE-2024-42070.