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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 10, 2026-11-26)
- **CWE:** CWE-362, CWE-416
- **Published:** 2024-07-12T12:20:36.299Z
- **Modified:** 2026-10-15T01:18:34.947Z

## Who should check

- Anyone running Linux \>= c7f2733e5011bfd136f1ca93497394d43aa76225, \< c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3; \>= a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, \< 93b53c202b51a69e42ca57f5a183f7e008e19f83; \>= c2dc077d8f722a1c73a24e674f925602ee5ece49, \< 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568; \>= 653bc5e6d9995d7d5f497c665b321875a626161c, \< 390b353d1a1da3e9c6c0fd14fe650d69063c95d6; \>= b93a6756a01f4fd2f329a39216f9824c56a66397, \< 2ba35b37f780c6410bb4bba9c3072596d8576702; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 90ae20d47de602198eb69e6cd7a3db3420abfc08; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10; 970709a67696b100a57b33af1a3d75fc34b747eb; \>= 5.4.269, \< 5.4.279; \>= 5.10.210, \< 5.10.221; …
- Anyone running Linux 6.8

## 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 and fixed versions

- Linux: \>= c7f2733e5011bfd136f1ca93497394d43aa76225, \< c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3; \>= a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, \< 93b53c202b51a69e42ca57f5a183f7e008e19f83; \>= c2dc077d8f722a1c73a24e674f925602ee5ece49, \< 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568; \>= 653bc5e6d9995d7d5f497c665b321875a626161c, \< 390b353d1a1da3e9c6c0fd14fe650d69063c95d6; \>= b93a6756a01f4fd2f329a39216f9824c56a66397, \< 2ba35b37f780c6410bb4bba9c3072596d8576702; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 90ae20d47de602198eb69e6cd7a3db3420abfc08; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10; 970709a67696b100a57b33af1a3d75fc34b747eb; \>= 5.4.269, \< 5.4.279; \>= 5.10.210, \< 5.10.221; … (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-39503. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-39503.md
Affected: Linux >= c7f2733e5011bfd136f1ca93497394d43aa76225, < c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3; >= a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, < 93b53c202b51a69e42ca57f5a183f7e008e19f83; >= c2dc077d8f722a1c73a24e674f925602ee5ece49, < 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568; >= 653bc5e6d9995d7d5f497c6…
Fixed in: Linux 93b53c202b51a69e42ca57f5a183f7e008e19f83, Linux 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, Linux 390b353d1a1da3e9c6c0fd14fe650d69063c95d6, Linux 2ba35b37f780c6410bb4bba9c3072596d8576702, Linux 90ae20d47de602198eb69e6cd7a3db3420abfc08, Linux 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10, Linux 5.4.2…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-39503 being exploited?

There is no confirmed exploitation: CVE-2024-39503 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-39503?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-39503?

Linux \>= c7f2733e5011bfd136f1ca93497394d43aa76225, \< c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3; \>= a24d5f2ac8ef702a58e55ec276aad29b4bd97e05, \< 93b53c202b51a69e42ca57f5a183f7e008e19f83; \>= c2dc077d8f722a1c73a24e674f925602ee5ece49, \< 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568; \>= 653bc5e6d9995d7d5f497c665b321875a626161c, \< 390b353d1a1da3e9c6c0fd14fe650d69063c95d6; \>= b93a6756a01f4fd2f329a39216f9824c56a66397, \< 2ba35b37f780c6410bb4bba9c3072596d8576702; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 90ae20d47de602198eb69e6cd7a3db3420abfc08; \>= 97f7cf1cd80eeed3b7c808b7c12463295c751001, \< 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10; 970709a67696b100a57b33af1a3d75fc34b747eb; \>= 5.4.269, \< 5.4.279; \>= 5.10.210, \< 5.10.221; …; Linux 6.8.

### Is there a fix for CVE-2024-39503?

Yes. Fixed in Linux 93b53c202b51a69e42ca57f5a183f7e008e19f83, Linux 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, Linux 390b353d1a1da3e9c6c0fd14fe650d69063c95d6, Linux 2ba35b37f780c6410bb4bba9c3072596d8576702, Linux 90ae20d47de602198eb69e6cd7a3db3420abfc08, Linux 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10, Linux 5.4.279, Linux 5.10.221. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-39503?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3>
- patch: <https://git.kernel.org/stable/c/93b53c202b51a69e42ca57f5a183f7e008e19f83>
- patch: <https://git.kernel.org/stable/c/0f1bb77c6d837c9513943bc7c08f04c5cc5c6568>
- patch: <https://git.kernel.org/stable/c/390b353d1a1da3e9c6c0fd14fe650d69063c95d6>
- patch: <https://git.kernel.org/stable/c/2ba35b37f780c6410bb4bba9c3072596d8576702>
- patch: <https://git.kernel.org/stable/c/90ae20d47de602198eb69e6cd7a3db3420abfc08>
- patch: <https://git.kernel.org/stable/c/4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-39503>

HTML: <https://flawdb.com/CVE-2024-39503> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-39503>
