{"id":"CVE-2026-23146","aliases":["CVE-2026-23146"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work\n\nhci_uart_set_proto() sets HCI_UART_PROTO_INIT before calling\nhci_uart_register_dev(), which calls proto->open() to initialize\nhu->priv. However, if a TTY write wakeup occurs during this window,\nhci_uart_tx_wakeup() may schedule write_work before hu->priv is\ninitialized, leading to a NULL pointer dereference in\nhci_uart_write_work() when proto->dequeue() accesses hu->priv.\n\nThe race condition is:\n\n  CPU0                              CPU1\n  ----                              ----\n  hci_uart_set_proto()\n    set_bit(HCI_UART_PROTO_INIT)\n    hci_uart_register_dev()\n                                    tty write wakeup\n                                      hci_uart_tty_wakeup()\n                                        hci_uart_tx_wakeup()\n                                          schedule_work(&hu->write_work)\n      proto->open(hu)\n        // initializes hu->priv\n                                    hci_uart_write_work()\n                                      hci_uart_dequeue()\n                                        proto->dequeue(hu)\n                                          // accesses hu->priv (NULL!)\n\nFix this by moving set_bit(HCI_UART_PROTO_INIT) after proto->open()\nsucceeds, ensuring hu->priv is initialized before any work can be\nscheduled.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_uart: fix null-ptr-deref in hci_uart_write_work\n\nhci_uart_set_proto() sets HCI_UART_PROTO_INIT before calling\nhci_uart_register_dev(), which calls proto->open() to initialize\nhu->priv. However, if a TTY write wakeup occurs during this window,\nhci_uart_tx_wakeup() may schedule write_work before hu->priv is\ninitialized, leading to a NULL pointer dereference in\nhci_uart_write_work() when proto->dequeue() accesses hu->priv.\n\nThe race condition is:\n\n  CPU0                              CPU1\n  ----                              ----\n  hci_uart_set_proto()\n    set_bit(HCI_UART_PROTO_INIT)\n    hci_uart_register_dev()\n                                    tty write wakeup\n                                      hci_uart_tty_wakeup()\n                                        hci_uart_tx_wakeup()\n                                          schedule_work(&hu->write_work)\n      proto->open(hu)\n        // initializes hu->priv\n                                    hci_uart_write_work()\n                                      hci_uart_dequeue()\n                                        proto->dequeue(hu)\n                                          // accesses hu->priv (NULL!)\n\nFix this by moving set_bit(HCI_UART_PROTO_INIT) after proto->open()\nsucceeds, ensuring hu->priv is initialized before any work can be\nscheduled.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nBluetooth: hci_uart: corrección de desreferencia de puntero nulo en hci_uart_write_work\n\nhci_uart_set_proto() establece HCI_UART_PROTO_INIT antes de llamar a hci_uart_register_dev(), que llama a proto-&gt;open() para inicializar hu-&gt;priv. Sin embargo, si una activación de escritura TTY ocurre durante esta ventana, hci_uart_tx_wakeup() puede programar write_work antes de que hu-&gt;priv sea inicializado, lo que lleva a una desreferencia de puntero NULL en hci_uart_write_work() cuando proto-&gt;dequeue() accede a hu-&gt;priv.\n\nLa condición de carrera es:\n\n  CPU0                              CPU1\n  ----                              ----\n  hci_uart_set_proto()\n    set_bit(HCI_UART_PROTO_INIT)\n    hci_uart_register_dev()\n                                    activación de escritura tty\n                                      hci_uart_tty_wakeup()\n                                        hci_uart_tx_wakeup()\n                                          schedule_work(&amp;hu-&gt;write_work)\n      proto-&gt;open(hu)\n        // inicializa hu-&gt;priv\n                                    hci_uart_write_work()\n                                      hci_uart_dequeue()\n                                        proto-&gt;dequeue(hu)\n                                          // accede a hu-&gt;priv (¡NULL!)\n\nEsto se soluciona moviendo set_bit(HCI_UART_PROTO_INIT) después de que proto-&gt;open() se complete con éxito, asegurando que hu-&gt;priv esté inicializado antes de que se pueda programar cualquier trabajo.","source":"nvd"}],"published":"2026-02-14T16:01:16.169Z","modified":"2026-10-19T19:17:39.357Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-362","CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"a40f94f7caa8d3421b64f63ac31bc0f24c890f39","fixed":"b0a900939e7e4866d9b90e9112514b72c451e873","status":"affected"},{"type":"git","introduced":"9e5a0f5777162e503400c70c6ed25fbbe2d38799","fixed":"ccc683f597ceb28deb966427ae948e5ac739a909","status":"affected"},{"type":"git","introduced":"80f14e9de6a43a0bd8194cad1003a3e6dcbc3984","fixed":"937a573423ce5a96fdb1fd425dc6b8d8d4ab5779","status":"affected"},{"type":"git","introduced":"02e1bcdfdf769974e7e9fa285e295cd9852e2a38","fixed":"186d147cf7689ba1f9b3ddb753ab634a84940cc9","status":"affected"},{"type":"git","introduced":"281782d2c6730241e300d630bb9f200d831ede71","fixed":"53e54cb31e667fca05b1808b990eac0807d1dab0","status":"affected"},{"type":"git","introduced":"5df5dafc171b90d0b8d51547a82657cd5a1986c7","fixed":"03e8c90c62233382042b7bd0fa8b8900552fdb62","status":"affected"},{"type":"git","introduced":"5df5dafc171b90d0b8d51547a82657cd5a1986c7","fixed":"0c3cd7a0b862c37acbee6d9502107146cc944398","status":"affected"},{"type":"git","version":"1dcf08fcff5ca529de6dc0395091f28854f4e54a","status":"affected"},{"type":"git","version":"8e5aff600539e5faea294d9612cca50220e602b8","status":"affected"},{"type":"git","version":"db7509fa110dd9b11134b75894677f30353b2c51","status":"affected"},{"type":"semver","introduced":"5.10.237","fixed":"5.10.249","status":"affected"},{"type":"semver","introduced":"5.15.181","fixed":"5.15.199","status":"affected"},{"type":"semver","introduced":"6.1.135","fixed":"6.1.162","status":"affected"},{"type":"semver","introduced":"6.6.88","fixed":"6.6.123","status":"affected"},{"type":"semver","introduced":"6.12.24","fixed":"6.12.69","status":"affected"},{"type":"semver","introduced":"5.4.293","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"6.13.12","fixed":"6.14","status":"affected"},{"type":"semver","introduced":"6.14.3","fixed":"6.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"5.10.249","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.123","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.69","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.9","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4.293","fixed":"5.5"},{"status":"affected","introduced":"5.10.237","fixed":"5.10.249"},{"status":"affected","introduced":"5.15.181","fixed":"5.15.199"},{"status":"affected","introduced":"6.1.135","fixed":"6.1.162"},{"status":"affected","introduced":"6.6.88","fixed":"6.6.123"},{"status":"affected","introduced":"6.12.24","fixed":"6.12.69"},{"status":"affected","introduced":"6.13.12","fixed":"6.14"},{"status":"affected","introduced":"6.14.3","fixed":"6.18.9"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b0a900939e7e4866d9b90e9112514b72c451e873","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccc683f597ceb28deb966427ae948e5ac739a909","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/937a573423ce5a96fdb1fd425dc6b8d8d4ab5779","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/186d147cf7689ba1f9b3ddb753ab634a84940cc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53e54cb31e667fca05b1808b990eac0807d1dab0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03e8c90c62233382042b7bd0fa8b8900552fdb62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c3cd7a0b862c37acbee6d9502107146cc944398","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-10T20:41:53.104Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23146","url":"https://www.cve.org/CVERecord?id=CVE-2026-23146","licence":"CVE Terms of Use","modified":"2026-10-19T18:25:33.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23146","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23146","licence":"Public domain","modified":"2026-10-19T19:17:39.357Z"}],"updatedAt":"2026-11-25T22:59:13.887Z","epss":{"score":0.00132,"percentile":0.02971,"date":"2026-12-01T12:00:22.000Z"}}