Junglewise Threat Intelligence

CVE-2024-26925: Linux Kernel race condition in nf_tables abort path

CVE-2024-26925 · Severity: medium · CVSS 5.5 · Published 2024-04-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking subsystem could allow a local user to cause a system crash. The issue exists in the component responsible for managing firewall rules (nf_tables), where a locking error occurs during certain cleanup operations. This can lead to a denial-of-service condition, impacting the availability of the affected system.

Technical details

A race condition exists in the Linux kernel netfilter subsystem (nf_tables) due to improper locking in the abort path. The commit mutex is prematurely released during the critical section between nft_gc_seq_begin() and nft_gc_seq_end() when nf_tables_module_autoload() is called. This allows an asynchronous garbage collection (GC) worker to collect expired objects and acquire the released commit lock within the same GC sequence, leading to a kernel panic or inconsistent state. The fix involves moving the module autoloading logic to the end of the abort phase after the GC sequence has been finalized. This is a local attack requiring low privileges.

Affected products

  • Linux Linux Kernel 4.19.316 to 4.20, 5.10.198 to 5.10.215, 5.15.134 to 5.15.155, 5.4.262 to 5.4.274, 6.1.56 to 6.1.86, 6.4.13 to 6.5, 6.5.1 to 6.6.26, 6.7 to 6.8.5

Timeline

  • 2024-04-25: advisory: NVD publication date
  • 2024-03-28: patched: Initial patch authored by Pablo Neira Ayuso

References

Related threats