Bluetooth: hci_qca: fix NULL pointer dereference in qca_setup() for non-serdev device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
7.1.57.2In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_qca: fix NULL pointer dereference in qca_setup() for non-serdev device
hu->serdev is NULL for hci_uart attached via non-serdev paths, but qca_setup() unconditionally calls serdev_device_get_drvdata(hu->serdev) and dereferences the result, causing a NULL pointer dereference.
Fix by guarding the dereference with a NULL check, consistent with the rest of qca_setup().
From the CVE record · Linux
The Linux kernel’s Bluetooth hci_qca driver dereferences a NULL pointer during qca_setup() when an hci_uart device is attached through a non-serdev path. This can cause a NULL pointer dereference; the input does not specify an attacker path or whether authentication or user interaction is required.
Engineers running Linux kernels with the Bluetooth hci_qca driver should check whether their kernel includes the fix; affected versions are not specified.