{"api_version":"1","generated_at":"2026-12-03T13:40:18+00:00","cve":"CVE-2026-143318","urls":{"html":"https://cve.report/CVE-2026-143318","api":"https://cve.report/api/cve/CVE-2026-143318.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143318","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143318"},"summary":{"title":"Bluetooth: hci_core: Fix queuing rx_work while workqueue is drained","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: Fix queuing rx_work while workqueue is drained\n\nhci_recv_frame() drops a frame unless HCI_UP or HCI_INIT is set, but the\ncheck is not synchronized with hci_dev_close_sync().  A driver can pass\nthe check, then close clears HCI_UP, flushes rx_work and starts\ndrain_workqueue(), and the late queue_work() of rx_work hits the\ndraining workqueue:\n\n  workqueue: cannot queue hci_rx_work on wq hci0\n  WARNING: kernel/workqueue.c:2352 at __queue_work+0x2c0/0x780\n  Call Trace:\n   queue_work_on+0xb2/0xc0\n   hci_recv_frame+0x18f/0x330\n   vhci_write+0x174/0x240\n   vfs_write+0x271/0x680\n   ksys_write+0x7c/0x110\n\nSkipping the queue_work() while HCI_CMD_DRAIN_WORKQUEUE is set, as done\nfor tx_work, does not work for rx_work: the flag covers the whole close,\nand events still have to be received in that window, for the commands\nsent by hdev->shutdown() and for the reset done with\nHCI_QUIRK_RESET_ON_CLOSE.\n\nRun hci_recv_frame() under rcu_read_lock() and wait with\nsynchronize_rcu() once HCI_UP has been cleared, so that every caller\nwhich still saw HCI_UP has queued its work before the workqueue is\ndrained, and later callers drop the frame.\n\nHCI_INIT does not reopen that window.  Apart from the\nHCI_QUIRK_RESET_ON_CLOSE reset, which runs after drain_workqueue() has\nreturned, it is only set by hci_dev_init_sync() during open, and open\nand close are serialized by hci_req_sync_lock.  So once the grace period\nhas ended, nothing can pass the check and queue rx_work until the drain\nis over.\n\nTested in qemu with the syzbot C reproducer, one run per boot: the\nwarning showed up on 12 of 30 boots before and on none of 42 boots after.\nBringing a vhci controller up and down 50 times behaves the same with\nand without this change.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:18","updated_at":"2026-12-03 10:18:18"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/400485e80568b395bcf4ec94e6d85aad9aa7d162","name":"https://git.kernel.org/stable/c/400485e80568b395bcf4ec94e6d85aad9aa7d162","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f71ca96adc16bedb27f110291edbf2dc75bcf848","name":"https://git.kernel.org/stable/c/f71ca96adc16bedb27f110291edbf2dc75bcf848","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/87ef531152846149fc869a271fe57ff67de42ecd","name":"https://git.kernel.org/stable/c/87ef531152846149fc869a271fe57ff67de42ecd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/19b4e5701712f74d005cc66a36374559e8dfd281","name":"https://git.kernel.org/stable/c/19b4e5701712f74d005cc66a36374559e8dfd281","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143318","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143318","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76727c02c1e14a2b561b806fa1d08acc1619ad27 87ef531152846149fc869a271fe57ff67de42ecd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76727c02c1e14a2b561b806fa1d08acc1619ad27 f71ca96adc16bedb27f110291edbf2dc75bcf848 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76727c02c1e14a2b561b806fa1d08acc1619ad27 400485e80568b395bcf4ec94e6d85aad9aa7d162 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 76727c02c1e14a2b561b806fa1d08acc1619ad27 19b4e5701712f74d005cc66a36374559e8dfd281 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_sync.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"87ef531152846149fc869a271fe57ff67de42ecd","status":"affected","version":"76727c02c1e14a2b561b806fa1d08acc1619ad27","versionType":"git"},{"lessThan":"f71ca96adc16bedb27f110291edbf2dc75bcf848","status":"affected","version":"76727c02c1e14a2b561b806fa1d08acc1619ad27","versionType":"git"},{"lessThan":"400485e80568b395bcf4ec94e6d85aad9aa7d162","status":"affected","version":"76727c02c1e14a2b561b806fa1d08acc1619ad27","versionType":"git"},{"lessThan":"19b4e5701712f74d005cc66a36374559e8dfd281","status":"affected","version":"76727c02c1e14a2b561b806fa1d08acc1619ad27","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_sync.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.19"},{"lessThan":"3.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"3.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"3.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: Fix queuing rx_work while workqueue is drained\n\nhci_recv_frame() drops a frame unless HCI_UP or HCI_INIT is set, but the\ncheck is not synchronized with hci_dev_close_sync().  A driver can pass\nthe check, then close clears HCI_UP, flushes rx_work and starts\ndrain_workqueue(), and the late queue_work() of rx_work hits the\ndraining workqueue:\n\n  workqueue: cannot queue hci_rx_work on wq hci0\n  WARNING: kernel/workqueue.c:2352 at __queue_work+0x2c0/0x780\n  Call Trace:\n   queue_work_on+0xb2/0xc0\n   hci_recv_frame+0x18f/0x330\n   vhci_write+0x174/0x240\n   vfs_write+0x271/0x680\n   ksys_write+0x7c/0x110\n\nSkipping the queue_work() while HCI_CMD_DRAIN_WORKQUEUE is set, as done\nfor tx_work, does not work for rx_work: the flag covers the whole close,\nand events still have to be received in that window, for the commands\nsent by hdev->shutdown() and for the reset done with\nHCI_QUIRK_RESET_ON_CLOSE.\n\nRun hci_recv_frame() under rcu_read_lock() and wait with\nsynchronize_rcu() once HCI_UP has been cleared, so that every caller\nwhich still saw HCI_UP has queued its work before the workqueue is\ndrained, and later callers drop the frame.\n\nHCI_INIT does not reopen that window.  Apart from the\nHCI_QUIRK_RESET_ON_CLOSE reset, which runs after drain_workqueue() has\nreturned, it is only set by hci_dev_init_sync() during open, and open\nand close are serialized by hci_req_sync_lock.  So once the grace period\nhas ended, nothing can pass the check and queue rx_work until the drain\nis over.\n\nTested in qemu with the syzbot C reproducer, one run per boot: the\nwarning showed up on 12 of 30 boots before and on none of 42 boots after.\nBringing a vhci controller up and down 50 times behaves the same with\nand without this change."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:21:47.089Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/87ef531152846149fc869a271fe57ff67de42ecd"},{"url":"https://git.kernel.org/stable/c/f71ca96adc16bedb27f110291edbf2dc75bcf848"},{"url":"https://git.kernel.org/stable/c/400485e80568b395bcf4ec94e6d85aad9aa7d162"},{"url":"https://git.kernel.org/stable/c/19b4e5701712f74d005cc66a36374559e8dfd281"}],"title":"Bluetooth: hci_core: Fix queuing rx_work while workqueue is drained","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143318","datePublished":"2026-12-03T09:21:47.089Z","dateReserved":"2026-12-03T03:10:28.366Z","dateUpdated":"2026-12-03T09:21:47.089Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:18","lastModifiedDate":"2026-12-03 10:18:18","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143318","Ordinal":"1","Title":"Bluetooth: hci_core: Fix queuing rx_work while workqueue is drai","CVE":"CVE-2026-143318","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143318","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: Fix queuing rx_work while workqueue is drained\n\nhci_recv_frame() drops a frame unless HCI_UP or HCI_INIT is set, but the\ncheck is not synchronized with hci_dev_close_sync().  A driver can pass\nthe check, then close clears HCI_UP, flushes rx_work and starts\ndrain_workqueue(), and the late queue_work() of rx_work hits the\ndraining workqueue:\n\n  workqueue: cannot queue hci_rx_work on wq hci0\n  WARNING: kernel/workqueue.c:2352 at __queue_work+0x2c0/0x780\n  Call Trace:\n   queue_work_on+0xb2/0xc0\n   hci_recv_frame+0x18f/0x330\n   vhci_write+0x174/0x240\n   vfs_write+0x271/0x680\n   ksys_write+0x7c/0x110\n\nSkipping the queue_work() while HCI_CMD_DRAIN_WORKQUEUE is set, as done\nfor tx_work, does not work for rx_work: the flag covers the whole close,\nand events still have to be received in that window, for the commands\nsent by hdev->shutdown() and for the reset done with\nHCI_QUIRK_RESET_ON_CLOSE.\n\nRun hci_recv_frame() under rcu_read_lock() and wait with\nsynchronize_rcu() once HCI_UP has been cleared, so that every caller\nwhich still saw HCI_UP has queued its work before the workqueue is\ndrained, and later callers drop the frame.\n\nHCI_INIT does not reopen that window.  Apart from the\nHCI_QUIRK_RESET_ON_CLOSE reset, which runs after drain_workqueue() has\nreturned, it is only set by hci_dev_init_sync() during open, and open\nand close are serialized by hci_req_sync_lock.  So once the grace period\nhas ended, nothing can pass the check and queue rx_work until the drain\nis over.\n\nTested in qemu with the syzbot C reproducer, one run per boot: the\nwarning showed up on 12 of 30 boots before and on none of 42 boots after.\nBringing a vhci controller up and down 50 times behaves the same with\nand without this change.","Type":"Description","Title":"Bluetooth: hci_core: Fix queuing rx_work while workqueue is drai"}]}}}