Junglewise Threat Intelligence

CVE-2024-27013: Linux Kernel denial of service via lack of rate-limiting in TUN driver

CVE-2024-27013 · Severity: medium · CVSS 5.5 · Published 2024-05-01

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's network tunneling driver (TUN) could allow an attacker to cause a system crash or significant performance degradation. By sending a flood of specially crafted, invalid network packets, an attacker can force the system to spend all its processing power logging error messages to the console. This leads to a 'soft lockup' where the system becomes unresponsive, potentially disrupting hosted services and virtual machines.

Technical details

A resource exhaustion vulnerability exists in the Linux kernel's TUN device driver (drivers/net/tun.c). When the `vhost_worker` process receives illegal packets via TUN callbacks, the `tun_do_read` function performs a hex dump of the packet contents to the system console without rate limiting. If a large volume of such packets is received while console logging is enabled, the overhead of serial/console I/O can consume excessive CPU time, triggering a soft lockup. This is classified as CWE-770 (Allocation of Resources Without Limits or Throttling). The fix introduces the `net_ratelimit()` mechanism to throttle these log messages.

Affected products

  • Linux Linux Kernel Fixed in 6.9, 6.8.8, 6.6.29, 6.1.88, 5.15.157, 5.10.216, 5.4.275, 4.19.313

Timeline

  • 2024-04-14: patched: Initial patch authored
  • 2024-05-01: advisory: CVE-2024-27013 published

References

Related threats