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.
[
{
"id": "CVE-2023-31083-41f6452b",
"signature_version": "v1",
"digest": {
"function_hash": "51410429388983802763209549068282473745",
"length": 965.0
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9c33663af9ad115f90c076a1828129a3fbadea98",
"signature_type": "Function",
"target": {
"file": "drivers/bluetooth/hci_ldisc.c",
"function": "hci_uart_tty_ioctl"
}
},
{
"id": "CVE-2023-31083-c695523f",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"259710377882959847648440891460884785836",
"125100721375442450977845311957278543123",
"93089128993144458566446010182012234594",
"309326514288046397311228889847827658302"
]
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9c33663af9ad115f90c076a1828129a3fbadea98",
"signature_type": "Line",
"target": {
"file": "drivers/bluetooth/hci_ldisc.c"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31083.json"