Race Condition in hci_uart_tty_ioctl Leads to NULL Pointer Dereference

Race Condition in hci_uart_tty_ioctl Leads to NULL Pointer Dereference

CVE-2023-31083 · MEDIUM Severity

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

An issue was discovered in drivers/bluetooth/hci_ldisc.c in the Linux kernel 6.2. In hci_uart_tty_ioctl, there is a race condition between HCIUARTSETPROTO and HCIUARTGETPROTO. HCI_UART_PROTO_SET is set before hu->proto is set. A NULL pointer dereference may occur.

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