VDB

CVE-2024-39503

CVE-2024-39503 PUBLISHED CVSS 7.8 HIGH

netfilter: ipset: Fix race between namespace cleanup and gc in the list:set type

Reported by linux · Published July 12, 2024

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).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
bpftoolAmazon Linux6.1.96-102.177.amzn2023
kernel-develAmazon Linux6.1.96-102.177.amzn2023
kernel-libbpf-staticAmazon Linux6.1.96-102.177.amzn2023
kernel-livepatch-6.1.96-102.177Amazon Linux1.0-0.amzn2023
kernel-libbpfAmazon Linux6.1.96-102.177.amzn2023
kernel-headersAmazon Linux6.1.96-102.177.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.96-102.177.amzn2023
kernelAmazon Linux6.1.96-102.177.amzn2023
linux_kernellinux6.9.6, 6.8, 6.6.35, 6.1.95, 5.15.162, 5.10.221, 5.4.279

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxc7f2733e5011bfd136f1ca93497394d43aa76225, a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, c2dc077d8f722a1c73a24e674f925602ee5ece49
LinuxLinux6.8, 0, 5.4.279
amazon:2023bpftool0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.1.96-102.1770
amazon:2023kernel-libbpf0
amazon:2023kernel-headers0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel0
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
linuxlinux_kernel6.7.6, 5.10.210, 5.4.269
LinuxLinux6.7.6, 6.6.35, 5.15.162
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra0
amazon:2023perf0
amazon:2023python3-perf0
amazon:2023kernel-tools0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0

…and 2 more

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
  • Jan 8, 2026 Security Advisory (273 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (176 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-39503
vulnetix vdb fixes CVE-2024-39503

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39503/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›