CVE-2024-39503
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-livepatch-6.1.96-102.177 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel | Amazon Linux | 6.1.96-102.177.amzn2023 |
| linux_kernel | linux | 6.9.6, 6.8, 6.6.35, 6.1.95, 5.15.162, 5.10.221, 5.4.279 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c7f2733e5011bfd136f1ca93497394d43aa76225, a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, c2dc077d8f722a1c73a24e674f925602ee5ece49 |
| Linux | Linux | 6.8, 0, 5.4.279 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.1.96-102.177 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| linux | linux_kernel | 6.7.6, 5.10.210, 5.4.269 |
| Linux | Linux | 6.7.6, 6.6.35, 5.15.162 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-tools | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
…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