Bluetooth: qca: fix NULL-deref on non-serdev suspend
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: qca: fix NULL-deref on non-serdev suspend
Qualcomm ROME controllers can be registered from the Bluetooth line discipline and in this case the HCI UART serdev pointer is NULL.
Add the missing sanity check to prevent a NULL-pointer dereference when wakeup() is called for a non-serdev controller during suspend.
Just return true for now to restore the original behaviour and address the crash with pre-6.2 kernels, which do not have commit e9b3e5b8c657 ("Bluetooth: hci_qca: only assign wakeup with serial port support") that causes the crash to happen already at setup() time.
From the CVE record · Linux
The Linux kernel’s Bluetooth qca driver can dereference a NULL pointer when a Qualcomm ROME controller registered through the Bluetooth line discipline is suspended. This can cause a crash; the input does not describe an attacker path, authentication requirement, or user interaction.
Operators of Linux kernels using Qualcomm ROME controllers registered through the Bluetooth line discipline should check their exposure, particularly on pre-6.2 kernels.