Junglewise Threat Intelligence

CVE-2024-40993: Linux Kernel netfilter ipset RCU dereference vulnerability in ip_set_core

CVE-2024-40993 · Severity: medium · CVSS 5.5 · Published 2024-07-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's networking subsystem, specifically within the 'ipset' component used for managing IP address sets in firewalls. Under certain conditions when sets are being destroyed, the system may experience stability issues or crashes. This primarily impacts the availability of the system but does not directly expose sensitive data.

Technical details

A vulnerability exists in the Linux kernel netfilter ipset component due to a suspicious rcu_dereference_protected() call. When destroying all sets, the kernel may be in a per-network namespace (pernet) exit phase or executing a userspace command. While the userspace command path correctly held the nfnetlink mutex, the pernet exit phase did not, leading to potential RCU-related races. The fix updates ip_set_dereference() to include a check for the 'is_deleted' state of the instance, ensuring proper synchronization during cleanup. This is a local vulnerability that can result in a denial of service (kernel crash).

Affected products

  • Linux Linux Kernel 6.1.95, 6.6.35, 6.9.6, 6.10-rc4

Timeline

  • 2024-06-17: patched: Initial patch authored by Jozsef Kadlecsik
  • 2024-07-12: disclosed: CVE published

References

Related threats