Executive brief
A vulnerability in the Linux kernel's networking subsystem could allow a local user to cause a system crash or potentially leak sensitive internal memory information. The issue exists in the nf_tables component, which is used for managing network firewall rules. While primarily impacting system stability, such flaws can sometimes be used by attackers to bypass security protections.
Technical details
A vulnerability in nf_tables exists due to conditional register store validation for NFT_DATA_VALUE. The root cause is that the validation logic did not account for all possible datatypes (NFT_DATA_VALUE or NFT_DATA_VERDICT) when inferring register types. A local attacker can exploit this to leak pointers to internal chain objects through the registers or cause a denial of service. The fix introduces a helper function to correctly infer and validate the register type from the set datatype, ensuring proper bounds and type checking. Patching is available across multiple stable kernel branches.
Affected products
- Linux Linux Kernel up to 3.13, 3.14 to 4.19.317, 4.20 to 5.4.279, 5.5 to 5.10.221, 5.11 to 5.15.162, 5.16 to 6.1.97, 6.2 to 6.6.37, 6.7 to 6.9.8
Timeline
- 2024-06-26: patched: Initial patch authored by Pablo Neira Ayuso
- 2024-07-29: disclosed: CVE published to NVD
References
- https://git.kernel.org/stable/c/23752737c6a618e994f9a310ec2568881a6b49c4
- https://git.kernel.org/stable/c/40188a25a9847dbeb7ec67517174a835a677752f
- https://git.kernel.org/stable/c/41a6375d48deaf7f730304b5153848bfa1c2980f
- https://git.kernel.org/stable/c/461302e07f49687ffe7d105fa0a330c07c7646d8
- https://git.kernel.org/stable/c/5d43d789b57943720dca4181a05f6477362b94cf
- https://git.kernel.org/stable/c/7931d32955e09d0a11b1fe0b6aac1bfa061c005c
- https://git.kernel.org/stable/c/952bf8df222599baadbd4f838a49c4fef81d2564