Not scored
Bluetooth: btusb: mediatek: Avoid btusb_mtk_claim_iso_intf() NULL deref
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: mediatek: Avoid btusb_mtk_claim_iso_intf() NULL deref In btusb_mtk_setup(), we set `btmtk_data->isopkt_intf` to: usb_ifnum_to_if(data->udev, MTK_ISO_IFNUM) That function can return NULL in some cases. Even when it returns NULL, though, we still go on to call btusb_mtk_claim_iso_intf(). As of commit e9087e828827 ("Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()"), calling btusb_mtk_claim_iso_intf() when `btmtk_data->isopkt_intf` is NULL will cause a crash because we'll end up passing a bad pointer to device_lock(). Prior to that commit we'd pass the NULL pointer directly to usb_driver_claim_interface() which would detect it and return an error, which was handled. Resolve the crash in btusb_mtk_claim_iso_intf() by adding a NULL check at the start of the function. This makes the code handle a NULL `btmtk_data->isopkt_intf` the same way it did before the problematic commit (just with a slight change to the error message printed).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 930e1790b99e5839e1af69d2f7fd808f1fba2df9 before 2fa09fe98ca3b114d66285f65f7e108fea131815, from e9087e828827e5a5c85e124ce77503f2b81c3491 before c3b990e0b23068da65f0004cd38ee31f43f36460, from e9087e828827e5a5c85e124ce77503f2b81c3491 before c884a0b27b4586e607431d86a1aa0bb4fb39169c, 4194766ec8756f4f654d595ae49962acbac49490, from 6.12.13 before 6.12.61, from 6.13.2 before 6.14, 6.14 Not affected: before 6.14, from 6.12.61 up to 6.12.*, from 6.17.11 up to 6.17.*, from 6.18 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: mediatek: Avoid btusb_mtk_claim_iso_intf() NULL deref In btusb_mtk_setup(), we set `btmtk_data->isopkt_intf` to: usb_ifnum_to_if(data->udev, MTK_ISO_IFNUM) That function can return NULL in some cases. Even when it returns NULL, though, we still go on to call btusb_mtk_claim_iso_intf(). As of commit e9087e828827 ("Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()"), calling btusb_mtk_claim_iso_intf() when `btmtk_data->isopkt_intf` is NULL will cause a crash because we'll end up passing a bad pointer to device_lock(). Prior to that commit we'd pass the NULL pointer directly to usb_driver_claim_interface() which would detect it and return an error, which was handled. Resolve the crash in btusb_mtk_claim_iso_intf() by adding a NULL check at the start of the function. This makes the code handle a NULL `btmtk_data->isopkt_intf` the same way it did before the problematic commit (just with a slight change to the error message printed).
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: btusb: mediatek: Evitar la desreferencia NULL de btusb_mtk_claim_iso_intf() En btusb_mtk_setup(), establecemos btmtk_data -> isopkt_intf a: usb_ifnum_to_if(data -> udev, MTK_ISO_IFNUM) Esa función puede devolver NULL en algunos casos. Sin embargo, incluso cuando devuelve NULL, seguimos llamando a btusb_mtk_claim_iso_intf(). A partir del commit e9087e828827 ('Bluetooth: btusb: mediatek: Añadir bloqueos para usb_driver_claim_interface()'), llamar a btusb_mtk_claim_iso_intf() cuando btmtk_data -> isopkt_intf es NULL causará un fallo porque terminaremos pasando un puntero incorrecto a device_lock(). Antes de ese commit, pasaríamos el puntero NULL directamente a usb_driver_claim_interface(), que lo detectaría y devolvería un error, el cual era manejado. Resolver el fallo en btusb_mtk_claim_iso_intf() añadiendo una comprobación de NULL al inicio de la función. Esto hace que el código maneje un btmtk_data -> isopkt_intf NULL de la misma manera que lo hacía antes del commit problemático (solo con un ligero cambio en el mensaje de error impreso).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68298 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2025-68298 changed 2026-10-14 | Public domain |