Vulnerability · Published Apr 24, 2024 · Assigned by Linux
CVE-2024-26924netfilter: nft_set_pipapo: do not free live element
High 7.8
In plain English
A high-severity null pointer dereference 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.8% (higher than 58% 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: nft_set_pipapo: do not free live element Pablo reports a crash with large batches of elements with a back-to-back add/remove pattern. Quoting Pablo: add_elem("00000000") timeout 100 ms ... add_elem("0000000X") timeout 100 ms del_elem("0000000X") <---------------- delete one that was just added ... add_elem("00005000") timeout 100 ms 1) nft_pipapo_remove() removes element 0000000X Then, KASAN shows a splat. Looking at the remove function there is a chance that we will drop a rule that maps to a non-deactivated element. Removal happens in two steps, first we do a lookup for key k and return the to-be-removed element and mark it as inactive in the next generation. Then, in a second step, the element gets removed from the set/map. The _remove function does not work correctly if we have more than one element that share the same key. This can happen if we insert an element into a set when the set already holds an element with same key, but the element mapping to the existing key has timed out or is not active in the next generation. In such case its possible that removal will unmap the wrong element. If this happens, we will leak the non-deactivated element, it becomes unreachable. The element that got deactivated (and will be freed later) will remain reachable in the set data structure, this can result in a crash when such an element is retrieved during lookup (stale pointer). Add a check that the fully matching key does in fact map to the element that we have marked as inactive in the deactivation step. If not, we need to continue searching. Add a bug/warn trap at the end of the function as well, the remove function must not ever be called with an invisible/unreachable/non-existent element. v2: avoid uneeded temporary variable (Stefano)
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.90-1 | DSA-5680-1 |
| Debian:12 | linux | 6.1.90-1 | DEBIAN-CVE-2024-26924 |
| Debian:13 | linux | 6.8.9-1 | DEBIAN-CVE-2024-26924 |
| Debian:14 | linux | 6.8.9-1 | DEBIAN-CVE-2024-26924 |
| 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-113.123 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux | 5.15.0-113.123 | USN-6869-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-36.36 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux | 6.8.0-36.36 | USN-6863-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1064.70 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1064.70 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1010.10 | USN-6864-2 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1010.10 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1022.22~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | 6.5.0-1022.22~22.04.1 | USN-6873-1 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1010.10~22.04.2 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1067.76 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1067.76 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1009.9 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1009.9 | USN-6875-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1023.24~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | 6.5.0-1023.24~22.04.1 | USN-6874-1 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1009.9~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1067.76.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1067.76.1 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1063.71 | USN-6869-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1063.71 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1009.10 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1009.10 | USN-6864-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1023.25~22.04.1 | USN-6872-1 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | 6.5.0-1023.25~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1061.67 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1061.67 | USN-6870-1 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1005.8 | USN-6864-3 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1005.8 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1047.54 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1047.54 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | 6.5.0-44.44~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1057.60 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1057.60 | USN-6870-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1007.7 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1007.7 | USN-6863-1 |
| Ubuntu:24.04:LTS | linux-intel | 6.8.0-1006.13 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-intel | 6.8.0-1006.13 | USN-6864-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1059.65 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1059.65 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1061.66 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1061.66 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-113.123 | USN-6869-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-113.123 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-36.36.1 | USN-6863-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-36.36.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-42.42.1~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | 6.5.0-42.42.1~22.04.1 | USN-6872-2 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1059.60 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1059.60 | USN-6869-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1008.8 | USN-6863-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1008.8 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1022.23 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | 6.5.0-1022.23 | USN-6872-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1026.26 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1015.15 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1025.26 | USN-6873-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | 6.5.0-1025.26 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1007.7 | USN-6864-2 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1007.7 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1062.68 | USN-6870-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1062.68 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1008.8 | USN-6918-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1008.8 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1025.25~22.04.1 | USN-6873-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | 6.5.0-1025.25~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1008.8~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1058.61 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1006.6 | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1006.6 | USN-6863-1 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:24.04:LTS | linux-riscv | 6.8.0-36.36.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | 6.5.0-42.42.1~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1016.17~22.04.1 | USN-6873-2 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | 6.5.0-1016.17~22.04.1 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1031.35 | UBUNTU-CVE-2024-26924 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1031.35 | USN-6869-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3c4287f62044a90e73a561aa05fc46e62da173da – before e3b887a9c11caf8357a821260e095f2a694a34f23c4287f62044a90e73a561aa05fc46e62da173da – before 7a1679e2d9bfa3b5f8755c2c7113e54b7d42bd463c4287f62044a90e73a561aa05fc46e62da173da – before 41d8fdf3afaff312e17466e4ab732937738d56443c4287f62044a90e73a561aa05fc46e62da173da – before ebf7c9746f073035ee26209e38c3a1170f7b349a3c4287f62044a90e73a561aa05fc46e62da173da – before 14b001ba221136c15f894577253e8db535b994873c4287f62044a90e73a561aa05fc46e62da173da – before 3cfc9ec039af60dbd8965ae085b2c2ccdcfbe1cc |
| Linux | Linux | 5.6 |
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/e3b887a9c11caf8357a821260e095f2a694a34f2
- https://git.kernel.org/stable/c/7a1679e2d9bfa3b5f8755c2c7113e54b7d42bd46
- https://git.kernel.org/stable/c/41d8fdf3afaff312e17466e4ab732937738d5644
- https://git.kernel.org/stable/c/ebf7c9746f073035ee26209e38c3a1170f7b349a
- https://git.kernel.org/stable/c/14b001ba221136c15f894577253e8db535b99487
- https://git.kernel.org/stable/c/3cfc9ec039af60dbd8965ae085b2c2ccdcfbe1cc
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html x_transferred
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/