Junglewise Threat Intelligence

CVE-2024-35982: Linux Kernel batman-adv infinite loop in translation table resizing

CVE-2024-35982 · Severity: medium · CVSS 5.5 · Published 2024-05-20

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's batman-adv mesh networking protocol can lead to a system hang or denial of service. When network interface settings like the Maximum Transmission Unit (MTU) are set too low, the system enters an infinite loop while trying to reorganize internal routing tables. This results in the system becoming unresponsive and flooding system logs with error messages.

Technical details

A vulnerability exists in the 'batadv_tt_local_resize_to_mtu' function within the batman-adv (B.A.T.M.A.N. Advanced) kernel module. When the MTU of an attached interface is reduced below a specific threshold—specifically when it is too small to accommodate even the basic header and VLAN-specific parts of the translation table—the resizing logic fails to terminate. The root cause is a 'while(true)' loop that relies on a timeout value that can stagnate at zero, preventing the loop from exiting when the table cannot be reduced further. An attacker with local privileges to modify network configurations or trigger MTU changes could exploit this to cause a kernel hang (Denial of Service). The fix replaces the infinite loop condition with a check on the timeout variable.

Affected products

  • Linux Linux Kernel 3.13 to 6.8.x

Timeline

  • 2024-02-12: patched: Initial patch authored
  • 2024-05-20: disclosed: CVE published

References

Related threats