Junglewise Threat Intelligence

CVE-2025-40283: Linux Kernel btusb use-after-free in btusb_disconnect

CVE-2025-40283 · Severity: high · CVSS 7.8 · Published 2025-12-06

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's Bluetooth USB driver could allow a local attacker to cause a system crash or potentially execute unauthorized code. The issue occurs when a Bluetooth USB device is disconnected, leading to a memory error where the system attempts to access data that has already been deleted. This could impact system stability and the security of data handled by the Bluetooth subsystem.

Technical details

A use-after-free (UAF) vulnerability exists in the btusb_disconnect() function within drivers/bluetooth/btusb.c of the Linux kernel. The root cause is an incorrect cleanup order where usb_driver_release_interface() is called, freeing the btusb data structure, while subsequent code in the same function still attempts to access members of that structure (such as oob_wake_irq and reset_gpio). A local attacker with the ability to trigger device disconnection could exploit this memory corruption to cause a kernel panic or achieve arbitrary code execution. The fix reorders the function to ensure all data accesses occur before the interface is released and the memory is freed.

Affected products

  • Linux Linux Kernel 4.11 to 6.12.y

Timeline

  • 2025-11-05: other: Vulnerability fixed in upstream commits
  • 2025-12-06: disclosed: CVE published

References

Related threats