Junglewise Threat Intelligence

CVE-2025-39860: Linux Kernel use-after-free in Bluetooth l2cap_sock_cleanup_listen

CVE-2025-39860 · Severity: high · CVSS 8 · Published 2025-09-19

Technologies: Siemens RUGGEDCOM RST2428P, Linux Kernel. Vendors: Siemens, Linux.

Executive brief

A security vulnerability has been identified in the Linux kernel's Bluetooth subsystem, which is used to manage wireless connections. A flaw in how the system handles Bluetooth socket cleanup could allow an attacker to cause a system crash or potentially execute unauthorized code. This issue primarily impacts the stability and security of devices using Bluetooth, such as industrial networking equipment and general-purpose computers.

Technical details

A use-after-free (UAF) vulnerability exists in the Linux kernel Bluetooth subsystem within the l2cap_sock_cleanup_listen() function. The root cause is a race condition where bt_accept_dequeue() can be called without proper socket locking during l2cap_sock_release(). This allows two threads to concurrently access and decrement the reference count of the same socket object; when the reference count hits zero prematurely, one thread may attempt to access the already-freed memory. The vulnerability was identified via syzbot and impacts systems using L2CAP sockets. Patches have been released for multiple stable kernel branches (e.g., 6.11, 6.6, 6.1) to ensure l2cap_sock_cleanup_listen() is called under lock_sock().

Affected products

  • Linux Linux Kernel Fixed in 6.11 and other stable branches
  • Siemens RUGGEDCOM RST2428P

Timeline

  • 2025-08-27: patched: Initial patch authored by Google engineers
  • 2025-09-09: patched: Patch committed to stable kernel trees
  • 2025-09-19: disclosed: CVE published in NVD

References

Related threats