What’s Vulnerable › Vulnerabilities

CVE-2024-42070: netfilter: nf_tables: fully validate NFT_DATA_VALUE on store to data registers

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 3.13, 4.19.317, 5.10.221, 5.15.162. Check the vendor advisory for mitigations.

References

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