Vulnerability · Published Jul 29, 2024 · Assigned by Linux
CVE-2024-41042netfilter: nf_tables: prefer nft_chain_validate
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: prefer nft_chain_validate nft_chain_validate already performs loop detection because a cycle will result in a call stack overflow (ctx->level >= NFT_JUMP_STACK_SIZE). It also follows maps via ->validate callback in nft_lookup, so there appears no reason to iterate the maps again. nf_tables_check_loops() and all its helper functions can be removed. This improves ruleset load time significantly, from 23s down to 12s. This also fixes a crash bug. Old loop detection code can result in unbounded recursion: BUG: TASK stack guard page was hit at .... Oops: stack guard page: 0000 [#1] PREEMPT SMP KASAN CPU: 4 PID: 1539 Comm: nft Not tainted 6.10.0-rc5+ #1 [..] with a suitable ruleset during validation of register stores. I can't see any actual reason to attempt to check for this from nft_validate_register_store(), at this point the transaction is still in progress, so we don't have a full picture of the rule graph. For nf-next it might make sense to either remove it or make this depend on table->validate_state in case we could catch an error earlier (for improved error reporting to userspace).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.27.1.rt7.368.el8_10 | ALSA-2024:8870 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | perf | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.27.1.el8_10 | ALSA-2024:8856 |
| Debian:12 | linux | 6.1.106-1 | DEBIAN-CVE-2024-41042 |
| Debian:13 | linux | 6.9.10-1 | DEBIAN-CVE-2024-41042 |
| Debian:14 | linux | 6.9.10-1 | DEBIAN-CVE-2024-41042 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.27.1.el8_10 | RLSA-2024:8856 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.27.1.rt7.368.el8_10 | RLSA-2024:8870 |
| Ubuntu:22.04:LTS | linux | 5.15.0-125.135 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-125.135 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux | 6.8.0-48.48 | USN-7089-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-48.48 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1072.78 | USN-7100-2 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1072.78 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1018.20 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1018.20 | USN-7089-3 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1018.19~22.04.1 | USN-7089-3 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1018.19~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1075.84 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1075.84 | USN-7123-1 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1017.20 | USN-7089-2 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1017.20 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1017.20~22.04.1 | USN-7090-1 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1017.20~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1076.85.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1071.79 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1071.79 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1017.19 | USN-7089-2 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1017.19 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1017.19~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1017.19~22.04.1 | USN-7089-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1069.75 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1069.75 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1013.17 | USN-7089-6 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1013.17 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1055.62 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1055.62 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1002.4 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1002.4 | USN-7156-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-48.48~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-48.48~22.04.1 | USN-7089-1 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1065.68 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1065.68 | USN-7100-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1015.15 | USN-7089-2 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1015.15 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1015.15~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1067.73 | USN-7144-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1067.73 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1069.74 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1069.74 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-125.135 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-125.135 | USN-7100-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-48.48.3 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-48.48.3 | USN-7089-7 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-48.48.3~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-48.48.3~22.04.1 | USN-7089-7 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1067.68 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1067.68 | USN-7100-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1017.19 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1017.19 | USN-7095-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1017.19~22.04.1 | USN-7095-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1017.19~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1017.19.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1017.19.1 | USN-7095-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1032.32 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1020.20 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1016.16 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1016.16 | USN-7089-4 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1070.76 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1070.76 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1015.16 | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1015.16 | USN-7089-3 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1015.15~22.04.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1015.15~22.04.1 | USN-7089-3 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1065.68 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1065.68 | USN-7100-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1014.16 | USN-7089-5 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1014.16 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-riscv | 6.8.0-48.48.1 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-48.48.1~22.04.2 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-41042 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1009.10 | UBUNTU-CVE-2024-41042 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1038.42 | USN-7100-1 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1038.42 | UBUNTU-CVE-2024-41042 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 20a69341f2d00cd042e81c82289fba8a13c05a25 – before 1947e4c3346faa8ac7e343652c0fd3b3e394202f20a69341f2d00cd042e81c82289fba8a13c05a25 – before cd4348e0a50286282c314ad6d2b0740e7c812c2420a69341f2d00cd042e81c82289fba8a13c05a25 – before 31c35f9f89ef585f1edb53e17ac73a0ca4a9712b20a69341f2d00cd042e81c82289fba8a13c05a25 – before 8246b7466c8da49d0d9e85e26cbd69dd6d3e3d1e20a69341f2d00cd042e81c82289fba8a13c05a25 – before b6b6e430470e1c3c5513311cb35a15a205595abe20a69341f2d00cd042e81c82289fba8a13c05a25 – before 717c91c6ed73e248de6a15bc53adefb81446c9d020a69341f2d00cd042e81c82289fba8a13c05a25 – before 9df785aeb7dcc8efd1d4110bb27d26005298ebae20a69341f2d00cd042e81c82289fba8a13c05a25 – before cff3bd012a9512ac5ed858d38e6ed65f6391008c |
| Linux | Linux | 3.13 |
References
- https://git.kernel.org/stable/c/1947e4c3346faa8ac7e343652c0fd3b3e394202f
- https://git.kernel.org/stable/c/cd4348e0a50286282c314ad6d2b0740e7c812c24
- https://git.kernel.org/stable/c/31c35f9f89ef585f1edb53e17ac73a0ca4a9712b
- https://git.kernel.org/stable/c/8246b7466c8da49d0d9e85e26cbd69dd6d3e3d1e
- https://git.kernel.org/stable/c/b6b6e430470e1c3c5513311cb35a15a205595abe
- https://git.kernel.org/stable/c/717c91c6ed73e248de6a15bc53adefb81446c9d0
- https://git.kernel.org/stable/c/9df785aeb7dcc8efd1d4110bb27d26005298ebae
- https://git.kernel.org/stable/c/cff3bd012a9512ac5ed858d38e6ed65f6391008c
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html