An issue was discovered in drivers/bluetooth/hcildisc.c in the Linux kernel 6.2. In hciuartttyioctl, there is a race condition between HCIUARTSETPROTO and HCIUARTGETPROTO. HCIUARTPROTO_SET is set before hu->proto is set. A NULL pointer dereference may occur.
[
{
"target": {
"function": "hci_uart_tty_ioctl",
"file": "drivers/bluetooth/hci_ldisc.c"
},
"id": "CVE-2023-31083-41f6452b",
"deprecated": false,
"digest": {
"length": 965.0,
"function_hash": "51410429388983802763209549068282473745"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9c33663af9ad115f90c076a1828129a3fbadea98",
"signature_version": "v1"
},
{
"target": {
"file": "drivers/bluetooth/hci_ldisc.c"
},
"id": "CVE-2023-31083-c695523f",
"deprecated": false,
"digest": {
"line_hashes": [
"259710377882959847648440891460884785836",
"125100721375442450977845311957278543123",
"93089128993144458566446010182012234594",
"309326514288046397311228889847827658302"
],
"threshold": 0.9
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9c33663af9ad115f90c076a1828129a3fbadea98",
"signature_version": "v1"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-31083.json"