Junglewise Threat Intelligence

CVE-2025-21862: Linux Kernel uninitialized resource in drop_monitor

CVE-2025-21862 · Severity: medium · CVSS 5.5 · Published 2025-03-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's network monitoring component could allow a local user to crash the system. The issue occurs because the system attempts to use certain internal security locks before they have been properly set up during the startup process. This can lead to a kernel panic or system instability, impacting the availability of the server or workstation.

Technical details

A race condition exists in the 'drop_monitor' module of the Linux kernel due to an incorrect initialization order. When the module is loaded, it registers its generic netlink family before initializing per-CPU resources and spinlocks. A local attacker or automated tool (like Syzkaller) can send a 'NET_DM_CMD_START' netlink message immediately after registration but before initialization is complete. This triggers 'net_dm_monitor_start()', which attempts to acquire an uninitialized spinlock ('bad magic'), resulting in a kernel BUG and system crash. The fix reorders the initialization sequence to ensure all resources are ready before the netlink interface is exposed.

Affected products

  • Linux Linux Kernel 2.6.30 to 6.1.130, 6.2 to 6.6.80, 6.7 to 6.12.17, 6.13 to 6.13.5

Timeline

  • 2025-02-13: disclosed: Vulnerability reported by InfoTeCS via Syzkaller
  • 2025-02-17: patched: Patch committed to mainline kernel
  • 2025-03-12: advisory: CVE-2025-21862 published

References

Related threats