Vulnerability · Published Jul 12, 2024 · Assigned by Linux

CVE-2024-39503netfilter: ipset: Fix race between namespace cleanup and gc in the list:set type

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.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 87.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: netfilter: ipset: Fix race between namespace cleanup and gc in the list:set type Lion Ackermann reported that there is a race condition between namespace cleanup in ipset and the garbage collection of the list:set type. The namespace cleanup can destroy the list:set type of sets while the gc of the set type is waiting to run in rcu cleanup. The latter uses data from the destroyed set which thus leads use after free. The patch contains the following parts: - When destroying all sets, first remove the garbage collectors, then wait if needed and then destroy the sets. - Fix the badly ordered "wait then remove gc" for the destroy a single set case. - Fix the missing rcu locking in the list:set type in the userspace test case. - Use proper RCU list handlings in the list:set type. The patch depends on c1193d9bbbd3 (netfilter: ipset: Add list flush to cancel_gc).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bpftool4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-abi-stablelists4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-core4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-cross-headers4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-debug4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-debug-core4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-debug-devel4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-debug-modules4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-debug-modules-extra4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-devel4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-doc4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-headers4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-modules4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-modules-extra4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-rt4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-core4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-debug4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-debug-core4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-debug-devel4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-debug-modules4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-debug-modules-extra4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-devel4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-modules4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-rt-modules-extra4.18.0-553.27.1.rt7.368.el8_10ALSA-2024:8870
AlmaLinux:8kernel-tools4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-tools-libs4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-tools-libs-devel4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-zfcpdump4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-zfcpdump-core4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-zfcpdump-devel4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-zfcpdump-modules4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8kernel-zfcpdump-modules-extra4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8perf4.18.0-553.27.1.el8_10ALSA-2024:8856
AlmaLinux:8python3-perf4.18.0-553.27.1.el8_10ALSA-2024:8856
Debian:12linux6.1.99-1DEBIAN-CVE-2024-39503
Debian:12linux6.1.99-1DSA-5731-1
Debian:13linux6.9.7-1DEBIAN-CVE-2024-39503
Debian:14linux6.9.7-1DEBIAN-CVE-2024-39503
Rocky Linux:8kernel0:4.18.0-553.27.1.el8_10RLSA-2024:8856
Rocky Linux:8kernel-rt0:4.18.0-553.27.1.rt7.368.el8_10RLSA-2024:8870
Ubuntu:22.04:LTSlinux5.15.0-121.131UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux6.8.0-44.44UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-aws5.15.0-1069.75UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-aws6.8.0-1015.16UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1015.16~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure5.15.0-1072.81UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-azure6.8.0-1014.16UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1072.81.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gcp5.15.0-1068.76UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-gcp6.8.0-1014.16UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1014.16~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gke5.15.0-1066.72UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-gke6.8.0-1010.13UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1052.59UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-45.45~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-ibm5.15.0-1062.65UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-ibm6.8.0-1012.12UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1064.70UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-kvm5.15.0-1066.71UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-121.131UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-44.44.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1064.65UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1013.14UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1013.14~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1013.14.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1012.12UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oracle5.15.0-1067.73UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-oracle6.8.0-1012.12UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1012.12~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-raspi5.15.0-1062.65UBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-raspi6.8.0-1011.12UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-39503
Ubuntu:24.04:LTSlinux-riscv6.8.0-44.44.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-44.44.1~22.04.1UBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-39503
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1035.39UBUNTU-CVE-2024-39503

Affected products (as reported)

VendorProductVersions
Linux Linux c7f2733e5011bfd136f1ca93497394d43aa76225 – before c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3a24d5f2ac8ef702a58e55ec276aad29b4bd97e05 – before 93b53c202b51a69e42ca57f5a183f7e008e19f83c2dc077d8f722a1c73a24e674f925602ee5ece49 – before 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568653bc5e6d9995d7d5f497c665b321875a626161c – before 390b353d1a1da3e9c6c0fd14fe650d69063c95d6b93a6756a01f4fd2f329a39216f9824c56a66397 – before 2ba35b37f780c6410bb4bba9c3072596d857670297f7cf1cd80eeed3b7c808b7c12463295c751001 – before 90ae20d47de602198eb69e6cd7a3db3420abfc0897f7cf1cd80eeed3b7c808b7c12463295c751001 – before 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10970709a67696b100a57b33af1a3d75fc34b747eb
Linux Linux 6.8

References