netfilter: ipset: Fix suspicious rcu_dereference_protected()
Published Jul 12, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.28%
Description
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 products
-
- Version 0f1bb77c6d83StatusaffectedConstraints<523bed6489e0
- Version 2ba35b37f780StatusaffectedConstraints<94dd411c18d7
- Version 390b353d1a1dStatusaffectedConstraints<788d585e62f4
- Version 4e7aaa6b82d6StatusaffectedConstraints<8ecd06277a76
- Version 90ae20d47de6StatusaffectedConstraints<3fc09e1ca854
- Version 93b53c202b51StatusaffectedConstraints<72d961196886
- Version c0761d1f1ce1StatusaffectedConstraints<3799d02ae420
- Version
-
- Version 6.1.95StatusaffectedConstraints<6.1.96
- Version 6.6.35StatusaffectedConstraints<6.6.36
- Version 6.9.6StatusaffectedConstraints<6.9.7
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||
| Linux | Linux | unaffected |
|
- 6.1.95
- 6.6.35
- 6.9.6
- 6.10
No data.
Red Hat Enterprise Linux 6
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (15)
- https://access.redhat.com/security/cve/CVE-2024-40993 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2297577 Issue Tracking
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-38788 Advisory
- https://git.kernel.org/stable/c/3799d02ae4208af08e81310770d8754863a246a1 Patch
- https://git.kernel.org/stable/c/3fc09e1ca854bc234e007a56e0f7431f5e2defb5 Patch
- https://git.kernel.org/stable/c/523bed6489e089dd8040e72453fb79da47b144c2 Patch
- https://git.kernel.org/stable/c/72d9611968867cc4c5509e7708b1507d692b797a Patch
- https://git.kernel.org/stable/c/788d585e62f487bc4536d454937f737b70d39a33 Patch
- https://git.kernel.org/stable/c/8ecd06277a7664f4ef018abae3abd3451d64e7a6 Patch
- https://git.kernel.org/stable/c/94dd411c18d7fff9e411555d5c662d29416501e4 Patch
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- https://lore.kernel.org/linux-cve-announce/2024071250-CVE-2024-40993-ee08@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2024-40993
- https://www.cve.org/CVERecord?id=CVE-2024-40993
Change history (0)
No recorded changes yet.