# CVE-2024-40993: netfilter: ipset: Fix suspicious rcu\_dereference\_protected()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.31% (percentile 17, 2026-11-26)
- **Published:** 2024-07-12T12:37:36.453Z
- **Modified:** 2026-10-15T01:18:40.213Z

## Who should check

- Anyone running Linux \>= c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3, \< 3799d02ae4208af08e81310770d8754863a246a1; \>= 93b53c202b51a69e42ca57f5a183f7e008e19f83, \< 72d9611968867cc4c5509e7708b1507d692b797a; \>= 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, \< 523bed6489e089dd8040e72453fb79da47b144c2; \>= 390b353d1a1da3e9c6c0fd14fe650d69063c95d6, \< 788d585e62f487bc4536d454937f737b70d39a33; \>= 2ba35b37f780c6410bb4bba9c3072596d8576702, \< 94dd411c18d7fff9e411555d5c662d29416501e4; \>= 90ae20d47de602198eb69e6cd7a3db3420abfc08, \< 3fc09e1ca854bc234e007a56e0f7431f5e2defb5; \>= 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10, \< 8ecd06277a7664f4ef018abae3abd3451d64e7a6
- Anyone running Linux \>= 6.1.95, \< 6.1.96; \>= 6.6.35, \< 6.6.36; \>= 6.9.6, \< 6.9.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: ipset: Fix suspicious rcu\_dereference\_protected()

When destroying all sets, we are either in pernet exit phase or
are executing a "destroy all sets command" from userspace. The latter
was taken into account in ip\_set\_dereference() (nfnetlink mutex is held),
but the former was not. The patch adds the required check to
rcu\_dereference\_protected() in ip\_set\_dereference().

## Affected and fixed versions

- Linux: \>= c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3, \< 3799d02ae4208af08e81310770d8754863a246a1; \>= 93b53c202b51a69e42ca57f5a183f7e008e19f83, \< 72d9611968867cc4c5509e7708b1507d692b797a; \>= 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, \< 523bed6489e089dd8040e72453fb79da47b144c2; \>= 390b353d1a1da3e9c6c0fd14fe650d69063c95d6, \< 788d585e62f487bc4536d454937f737b70d39a33; \>= 2ba35b37f780c6410bb4bba9c3072596d8576702, \< 94dd411c18d7fff9e411555d5c662d29416501e4; \>= 90ae20d47de602198eb69e6cd7a3db3420abfc08, \< 3fc09e1ca854bc234e007a56e0f7431f5e2defb5; \>= 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10, \< 8ecd06277a7664f4ef018abae3abd3451d64e7a6 (cvelist)
- Linux: \>= 6.1.95, \< 6.1.96; \>= 6.6.35, \< 6.6.36; \>= 6.9.6, \< 6.9.7 (cvelist)

## Mitigation

- Upgrade Linux to 8ecd06277a7664f4ef018abae3abd3451d64e7a6 or later.
- Upgrade Linux to 6.9.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-40993.md
Affected: Linux >= c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3, < 3799d02ae4208af08e81310770d8754863a246a1; >= 93b53c202b51a69e42ca57f5a183f7e008e19f83, < 72d9611968867cc4c5509e7708b1507d692b797a; >= 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, < 523bed6489e089dd8040e72453fb79da47b144c2; >= 390b353d1a1da3e9c6c0fd1…
Fixed in: Linux 3799d02ae4208af08e81310770d8754863a246a1, Linux 72d9611968867cc4c5509e7708b1507d692b797a, Linux 523bed6489e089dd8040e72453fb79da47b144c2, Linux 788d585e62f487bc4536d454937f737b70d39a33, Linux 94dd411c18d7fff9e411555d5c662d29416501e4, Linux 3fc09e1ca854bc234e007a56e0f7431f5e2defb5, Linux 8ecd0…

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-40993 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= c0761d1f1ce1d5b85b5e82bbb714df12de1aa8c3, \< 3799d02ae4208af08e81310770d8754863a246a1; \>= 93b53c202b51a69e42ca57f5a183f7e008e19f83, \< 72d9611968867cc4c5509e7708b1507d692b797a; \>= 0f1bb77c6d837c9513943bc7c08f04c5cc5c6568, \< 523bed6489e089dd8040e72453fb79da47b144c2; \>= 390b353d1a1da3e9c6c0fd14fe650d69063c95d6, \< 788d585e62f487bc4536d454937f737b70d39a33; \>= 2ba35b37f780c6410bb4bba9c3072596d8576702, \< 94dd411c18d7fff9e411555d5c662d29416501e4; \>= 90ae20d47de602198eb69e6cd7a3db3420abfc08, \< 3fc09e1ca854bc234e007a56e0f7431f5e2defb5; \>= 4e7aaa6b82d63e8ddcbfb56b4fd3d014ca586f10, \< 8ecd06277a7664f4ef018abae3abd3451d64e7a6; Linux \>= 6.1.95, \< 6.1.96; \>= 6.6.35, \< 6.6.36; \>= 6.9.6, \< 6.9.7.

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

Yes. Fixed in Linux 3799d02ae4208af08e81310770d8754863a246a1, Linux 72d9611968867cc4c5509e7708b1507d692b797a, Linux 523bed6489e089dd8040e72453fb79da47b144c2, Linux 788d585e62f487bc4536d454937f737b70d39a33, Linux 94dd411c18d7fff9e411555d5c662d29416501e4, Linux 3fc09e1ca854bc234e007a56e0f7431f5e2defb5, Linux 8ecd06277a7664f4ef018abae3abd3451d64e7a6, Linux 6.1.96, Linux 6.6.36, Linux 6.9.7. Upgrade Linux to 8ecd06277a7664f4ef018abae3abd3451d64e7a6 or later. Upgrade Linux to 6.9.7 or later.

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

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/3799d02ae4208af08e81310770d8754863a246a1>
- patch: <https://git.kernel.org/stable/c/72d9611968867cc4c5509e7708b1507d692b797a>
- patch: <https://git.kernel.org/stable/c/523bed6489e089dd8040e72453fb79da47b144c2>
- patch: <https://git.kernel.org/stable/c/788d585e62f487bc4536d454937f737b70d39a33>
- patch: <https://git.kernel.org/stable/c/94dd411c18d7fff9e411555d5c662d29416501e4>
- patch: <https://git.kernel.org/stable/c/3fc09e1ca854bc234e007a56e0f7431f5e2defb5>
- patch: <https://git.kernel.org/stable/c/8ecd06277a7664f4ef018abae3abd3451d64e7a6>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.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-40993>

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