Junglewise Threat Intelligence

CVE-2025-39951: Linux Kernel use-after-free in virtio_uml_probe

CVE-2025-39951 · Severity: high · CVSS 7.8 · Published 2025-10-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability exists in the Linux kernel's Virtio User Mode Linux (UML) driver. This component is used to run Linux as a user-space process, often for testing or virtualization. An exploit could allow a local user to cause a system crash or potentially execute unauthorized code, impacting the stability and security of the virtualized environment.

Technical details

A use-after-free (UAF) vulnerability exists in arch/um/drivers/virtio_uml.c within the virtio_uml_probe function. The root cause is an incorrect error handling path: when register_virtio_device() fails, the code incorrectly sets the 'registered' flag to 1 and proceeds to call put_device(), leading to a UAF condition or inconsistent device state. This is a local vulnerability requiring low privileges. Attackers could potentially leverage this for local privilege escalation or to cause a kernel oops (denial of service). Patches have been released across multiple stable kernel branches including 5.10.y, 5.15.y, 6.1.y, 6.6.y, and 6.12.y.

Affected products

  • Linux Linux Kernel 5.5 to 5.10.245, 5.11 to 5.15.194, 6.1.154, 6.6.108, 6.7 to 6.12.49

Timeline

  • 2025-08-28: patched: Initial patch authored by Miaoqian Lin
  • 2025-10-04: disclosed: CVE-2025-39951 published

References

Related threats