Executive brief
A vulnerability was identified in the Linux kernel's Netfilter component, which manages network traffic filtering and firewall rules. A local attacker could exploit this flaw to cause a system crash or potentially access sensitive information from the computer's memory. This issue primarily affects older versions of the kernel and has been addressed in recent security updates.
Technical details
An out-of-bounds read vulnerability exists in the Linux kernel Netfilter component (specifically within ip_tables.c). The root cause is a failure to validate the 'optlen' argument in the setsockopt() system call before copying data from a socket pointer. This allows a local attacker to trigger a slab-out-of-bounds read via the do_replace or do_ipt_set_ctl functions. The vulnerability was exposed by recent BPF optimizations that changed how memory is allocated for socket options. Exploitation can lead to a kernel panic (DoS) or the leakage of kernel memory. Patches have been released across multiple stable kernel branches.
Affected products
- Linux Linux Kernel 2.6.12 to 5.10
Timeline
- 2024-04-04: patched: Initial fix committed to mainline kernel
- 2024-05-19: disclosed: CVE published
References
- https://git.kernel.org/stable/c/0c83842df40f86e529db6842231154772c20edcc
- https://git.kernel.org/stable/c/0f038242b77ddfc505bf4163d4904c1abd2e74d6
- https://git.kernel.org/stable/c/18aae2cb87e5faa9c5bd865260ceadac60d5a6c5
- https://git.kernel.org/stable/c/440e948cf0eff32cfe322dcbca3f2525354b159b
- https://git.kernel.org/stable/c/58f2bfb789e6bd3bc24a2c9c1580f3c67aec3018
- https://git.kernel.org/stable/c/81d51b9b7c95e791ba3c1a2dd77920a9d3b3f525
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html