Misinterpretation of devm_gpiod_get_index_optional Return Value in Linux Kernel Bluetooth Driver

Misinterpretation of devm_gpiod_get_index_optional Return Value in Linux Kernel Bluetooth Driver

CVE-2023-23002 · MEDIUM Severity

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

In the Linux kernel before 5.16.3, drivers/bluetooth/hci_qca.c misinterprets the devm_gpiod_get_index_optional return value (expects it to be NULL in the error case, whereas it is actually an error pointer).

Learn more about our Cis Benchmark Audit For Distribution Independent Linux.