Junglewise Threat Intelligence

CVE-2024-35899: Linux Kernel nf_tables use-after-free in netfilter cleanup

CVE-2024-35899 · Severity: medium · CVSS 6.1 · Published 2024-05-19

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's netfilter component, which manages network traffic filtering and firewall rules. A race condition during the removal of network modules could allow a local user to trigger a system crash or potentially access restricted memory. This issue primarily impacts system stability and availability.

Technical details

A race condition exists in the nf_tables component of the Linux kernel between the exit_net cleanup path and the asynchronous destroy workqueue. When the nf_tables module is removed, the exit_net path may release sets or elements while the destroy workqueue is still attempting to process them, resulting in a slab-use-after-free. An attacker with local access could exploit this to cause a kernel panic (DoS) or potentially read sensitive kernel memory. The fix involves ensuring pending destroy work is flushed before the network namespace resources are released. Patches have been released for multiple stable kernel branches.

Affected products

  • Linux Linux Kernel 5.5 to 6.9-rc2

Timeline

  • 2024-04-02: patched: Initial patch by Pablo Neira Ayuso
  • 2024-05-19: disclosed: CVE published

References

Related threats