CVE-2025-21827

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21827
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21827.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21827
Downstream
Related
Published
2025-03-06T16:04:32Z
Modified
2025-10-10T06:50:28.119024Z
Summary
Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()
Details

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

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

The documentation for usbdriverclaim_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 hcipoweron [bluetooth] Call trace: usbdriverclaiminterface btusbmtkclaimisointf btusbmtksetup hcidevopensync hcipoweron processscheduledworks 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: usbsuspendboth usbruntimesuspend _rpmcallback rpmsuspend pmruntimework processscheduled_works

Both errors appear to be fixed with the proper locking.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ceac1cb0259de682d78f5c784ef8e0b13022e9d9
Fixed
930e1790b99e5839e1af69d2f7fd808f1fba2df9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ceac1cb0259de682d78f5c784ef8e0b13022e9d9
Fixed
4194766ec8756f4f654d595ae49962acbac49490
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ceac1cb0259de682d78f5c784ef8e0b13022e9d9
Fixed
e9087e828827e5a5c85e124ce77503f2b81c3491

Affected versions

v6.*

v6.10
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.13
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.2