Junglewise Threat Intelligence

CVE-2025-40164: Linux Kernel usbnet race condition in usbnet_resume_rx

CVE-2025-40164 · Severity: medium · CVSS 5.5 · Published 2025-11-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's USB networking driver could allow a local user to cause a system crash or instability. The issue occurs when the system attempts to change network settings (like the MTU) on certain USB network adapters. This can trigger internal kernel errors that disrupt network operations or lead to a complete system hang.

Technical details

A concurrency issue exists in the Linux kernel's usbnet driver within the usbnet_resume_rx() function. Syzbot identified that the code was calling smp_processor_id() while in a preemptible state, which violates kernel safety assumptions. This occurs during MTU changes (usbnet_change_mtu) when the receive queue is resumed. An attacker with local access could potentially trigger this condition to cause a Denial of Service (DoS) via kernel panic or instability. The fix involves wrapping the affected code in local_bh_disable() and local_bh_enable() to ensure it runs in a non-preemptible softirq context.

Affected products

  • Linux Linux Kernel 4.7 to 6.17

Timeline

  • 2025-11-12: advisory: CVE-2025-40164 published
  • 2025-10-23: patched: Fix committed to stable branches

References

Related threats