CVE-2025-21827CWE-667

CVE-2025-21827

High · published March 6, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
3.7
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()

The documentation for usb_driver_claim_interface() says that "the

device lock" is needed when the function is called from places other

than probe(). This appears to be the lock for the USB interface

device. The Mediatek btusb code gets called via this path:

Workqueue: hci0 hci_power_on [bluetooth]

Call trace:

usb_driver_claim_interface

btusb_mtk_claim_iso_intf

btusb_mtk_setup

hci_dev_open_sync

hci_power_on

process_scheduled_works

worker_thread

kthread

With the above call trace the device lock hasn't been claimed. Claim

it.

Without this fix, we'd sometimes see the error "Failed to claim iso

interface". Sometimes we'd even see worse errors, like a NULL pointer

dereference (where `intf->dev.driver` was NULL) with a trace like:

Call trace:

usb_suspend_both

usb_runtime_suspend

__rpm_callback

rpm_suspend

pm_runtime_work

process_scheduled_works

Both errors appear to be fixed with the proper locking.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00149 · 3.7th percentile
Weakness
CWE-667 · Improper Locking
Published
2025-03-06T21:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 6.11, < 6.12.136.12.13
linux/linux_kernel≥ 6.13, < 6.13.26.13.2
References (3)
EPSS history
Timeline
  • 06 MAR 16:04Z
    Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()
    cvelistv5