CVE-2024-40993 netfilter: ipset: Fix suspicious rcu_dereference_protected()
A missing RCU check in Linux kernel netfilter ipset during pernet exit can trigger a suspicious dereference warning, potentially leading to instability or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-40993?
CVE-2024-40993 is a medium-severity vulnerability in Linux kernel, published on 12 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Which versions are affected by CVE-2024-40993?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-40993?
Apply the vendor's patch.
Is CVE-2024-40993 being exploited?
There is no known exploitation of CVE-2024-40993 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-40993, DEBIAN-CVE-2024-40993, GHSA-66vv-cf65-88qw, UBUNTU-CVE-2024-40993.