Junglewise Threat Intelligence

CVE-2025-21806: Linux Kernel denial of service in networking NAPI backlog processing

CVE-2025-21806 · Severity: medium · CVSS 5.5 · Published 2025-02-27

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component could allow a system administrator to inadvertently crash the system. By setting a specific networking parameter (dev_weight) to zero, the system's packet processing mechanism enters an unstable state that leads to a kernel crash. This results in a complete loss of system availability, requiring a reboot to restore operations.

Technical details

A vulnerability exists in the Linux kernel networking stack where setting the 'net.core.dev_weight' sysctl parameter to zero causes a kernel panic. When the NAPI weight is zero, the 'process_backlog' function may return 0 and prematurely clear the NAPI_STATE_SCHED bit. This allows 'napi_schedule_rps' to be retriggered in 'enqueue_to_backlog' while the system is still polling, leading to a 'list_add double add' corruption and a subsequent kernel warning or panic. The issue is reachable via local administrative access as the setting is system-wide and not namespaced. Patches have been released across multiple stable kernel branches to enforce a minimum value of one for these sysctl parameters.

Affected products

  • Linux Linux Kernel versions from 2.6.12 up to 6.13.2

Timeline

  • 2025-01-16: patched: Initial patch submitted by Liu Jian
  • 2025-02-27: advisory: CVE-2025-21806 published

References

Related threats