{"id":"CVE-2026-139373","state":"PUBLISHED","title":"Bluetooth: hci_sync: Protect IRK identity reads with RCU","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Protect IRK identity reads with RCU\n\nhci_le_set_privacy_mode_sync() needs the IRK returned by\nhci_find_irk_by_addr() to remain allocated until its identity address\nand type have been copied into the command. The finder drops its RCU\nread lock before returning this borrowed pointer, leaving the later\nfield reads unprotected.\n\nWhen a privacy-capable controller has a pending peer with address\nresolution and device privacy enabled, accept-list programming can\nreach this helper while management reloads the IRKs. The request\nworker holds hdev->req_lock, whereas load_irks() takes hdev->lock,\nallowing the following ordering:\n\n  Request worker                     Management / RCU reclaim\n  hci_le_set_privacy_mode_sync()\n    hci_find_irk_by_addr()\n      rcu_read_lock()\n      find matching IRK\n      rcu_read_unlock()\n      return borrowed IRK\n                                     load_irks()\n                                       hci_dev_lock(hdev)\n                                       hci_smp_irks_clear()\n                                         list_del_rcu()\n                                         kfree_rcu()\n                                       hci_dev_unlock(hdev)\n                                     RCU grace period and IRK free\n    read irk->addr_type\n    copy irk->bdaddr\n\nThe request then accesses a freed IRK. KASAN reports a one-byte\nuse-after-free read of addr_type on this path.\n\nKeep an outer RCU read-side critical section across the lookup and\nboth identity-field copies. The finder's nested unlock then leaves\nthe IRK protected until the caller finishes copying it. Release RCU\non a lookup miss and after copying the fields, before the synchronous\nHCI command can sleep.\n\nKASAN report as below:\n\n    ==================================================================\n        BUG: KASAN: slab-use-after-free in\n    hci_le_add_accept_list_sync+0x90f/0x940\n    Read of size 1 at addr ffff88810aa6072c by task kworker/u17:0/493\n\n    Workqueue: hci0 hci_cmd_sync_work\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     kasan_report+0xe0/0x110\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     hci_le_add_accept_list_sync+0x90f/0x940\n     ? __pfx_hci_le_add_accept_list_sync+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? conn_params_copy+0x3a0/0x650\n     hci_passive_scan_sync+0x8c9/0x1e80\n     ? __pfx_hci_passive_scan_sync+0x10/0x10\n     ? find_held_lock+0x2b/0x80\n     ? hci_lookup_le_connect+0x181/0x3c0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? find_held_lock+0x2b/0x80\n     ? hci_update_passive_scan_sync+0x437/0x950\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x280\n     hci_update_passive_scan_sync+0x461/0x950\n     hci_cmd_sync_work+0x1b3/0x450\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     process_one_work+0x908/0x19c0\n     ? __pfx_process_one_work+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_is_held_type+0x8f/0x100\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     worker_thread+0x65c/0xe40\n     ? __pfx_worker_thread+0x10/0x10\n     kthread+0x34f/0x460\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __pfx_kthread+0x10/0x10\n     ret_from_fork+0x659/0x940\n     ? __pfx_ret_from_fork+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __switch_to+0x74f/0xf80\n     ? __pfx_kthread+0x10/0x10\n     ret_from_fork_asm+0x1a/0x30\n     </TASK>\n\n    Allocated by task 507:\n     kasan_save_stack+0x33/0x60\n     kasan_save_track+0x14/0x30\n     __kasan_kmalloc+0xaa/0xb0\n     __kmalloc_cache_noprof+0x251/0x610\n     hci_add_irk+0xb6/0x220\n     load_irks+0x5ef/0x7e0\n     hci_sock_sendmsg+0x128b/0x22e0\n     __sys_sendto+0x425/0x470\n     __x64_sys_sendto+0xe5/0x1c0\n     do_s\n---truncated---","publishedAt":"2026-11-30T13:34:09.474Z","updatedAt":"2026-11-30T13:34:09.474Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"18a7c878f887a5d868f2c83237c4c3d041473137","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"354f5439fb5fb1875e7005b64888edc316b5518e","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"3fe43efe02798af06b133fcf5e55edf526e9d70e","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"4c013e768fc8f402cb2bb07e0915de742c5ce564","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"40441bea279abed2dca12f4876528ae4f0bd1196","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"4b76fa362110cf1b74a0263c14406b71de99894c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sync.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.19","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sync.c"]}],"references":["https://git.kernel.org/stable/c/18a7c878f887a5d868f2c83237c4c3d041473137","https://git.kernel.org/stable/c/354f5439fb5fb1875e7005b64888edc316b5518e","https://git.kernel.org/stable/c/3fe43efe02798af06b133fcf5e55edf526e9d70e","https://git.kernel.org/stable/c/4c013e768fc8f402cb2bb07e0915de742c5ce564","https://git.kernel.org/stable/c/40441bea279abed2dca12f4876528ae4f0bd1196","https://git.kernel.org/stable/c/4b76fa362110cf1b74a0263c14406b71de99894c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139373.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139373","state":"PUBLISHED","datePublished":"2026-11-30T13:34:09.474Z","dateUpdated":"2026-11-30T13:34:09.474Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.930Z"},"containers":{"cna":{"title":"Bluetooth: hci_sync: Protect IRK identity reads with RCU","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Protect IRK identity reads with RCU\n\nhci_le_set_privacy_mode_sync() needs the IRK returned by\nhci_find_irk_by_addr() to remain allocated until its identity address\nand type have been copied into the command. The finder drops its RCU\nread lock before returning this borrowed pointer, leaving the later\nfield reads unprotected.\n\nWhen a privacy-capable controller has a pending peer with address\nresolution and device privacy enabled, accept-list programming can\nreach this helper while management reloads the IRKs. The request\nworker holds hdev->req_lock, whereas load_irks() takes hdev->lock,\nallowing the following ordering:\n\n  Request worker                     Management / RCU reclaim\n  hci_le_set_privacy_mode_sync()\n    hci_find_irk_by_addr()\n      rcu_read_lock()\n      find matching IRK\n      rcu_read_unlock()\n      return borrowed IRK\n                                     load_irks()\n                                       hci_dev_lock(hdev)\n                                       hci_smp_irks_clear()\n                                         list_del_rcu()\n                                         kfree_rcu()\n                                       hci_dev_unlock(hdev)\n                                     RCU grace period and IRK free\n    read irk->addr_type\n    copy irk->bdaddr\n\nThe request then accesses a freed IRK. KASAN reports a one-byte\nuse-after-free read of addr_type on this path.\n\nKeep an outer RCU read-side critical section across the lookup and\nboth identity-field copies. The finder's nested unlock then leaves\nthe IRK protected until the caller finishes copying it. Release RCU\non a lookup miss and after copying the fields, before the synchronous\nHCI command can sleep.\n\nKASAN report as below:\n\n    ==================================================================\n        BUG: KASAN: slab-use-after-free in\n    hci_le_add_accept_list_sync+0x90f/0x940\n    Read of size 1 at addr ffff88810aa6072c by task kworker/u17:0/493\n\n    Workqueue: hci0 hci_cmd_sync_work\n    Call Trace:\n     <TASK>\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     kasan_report+0xe0/0x110\n     ? hci_le_add_accept_list_sync+0x90f/0x940\n     hci_le_add_accept_list_sync+0x90f/0x940\n     ? __pfx_hci_le_add_accept_list_sync+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? conn_params_copy+0x3a0/0x650\n     hci_passive_scan_sync+0x8c9/0x1e80\n     ? __pfx_hci_passive_scan_sync+0x10/0x10\n     ? find_held_lock+0x2b/0x80\n     ? hci_lookup_le_connect+0x181/0x3c0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? find_held_lock+0x2b/0x80\n     ? hci_update_passive_scan_sync+0x437/0x950\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x280\n     hci_update_passive_scan_sync+0x461/0x950\n     hci_cmd_sync_work+0x1b3/0x450\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     process_one_work+0x908/0x19c0\n     ? __pfx_process_one_work+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_is_held_type+0x8f/0x100\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     worker_thread+0x65c/0xe40\n     ? __pfx_worker_thread+0x10/0x10\n     kthread+0x34f/0x460\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __pfx_kthread+0x10/0x10\n     ret_from_fork+0x659/0x940\n     ? __pfx_ret_from_fork+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __switch_to+0x74f/0xf80\n     ? __pfx_kthread+0x10/0x10\n     ret_from_fork_asm+0x1a/0x30\n     </TASK>\n\n    Allocated by task 507:\n     kasan_save_stack+0x33/0x60\n     kasan_save_track+0x14/0x30\n     __kasan_kmalloc+0xaa/0xb0\n     __kmalloc_cache_noprof+0x251/0x610\n     hci_add_irk+0xb6/0x220\n     load_irks+0x5ef/0x7e0\n     hci_sock_sendmsg+0x128b/0x22e0\n     __sys_sendto+0x425/0x470\n     __x64_sys_sendto+0xe5/0x1c0\n     do_s\n---truncated---"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"18a7c878f887a5d868f2c83237c4c3d041473137","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"354f5439fb5fb1875e7005b64888edc316b5518e","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"3fe43efe02798af06b133fcf5e55edf526e9d70e","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"4c013e768fc8f402cb2bb07e0915de742c5ce564","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"40441bea279abed2dca12f4876528ae4f0bd1196","versionType":"git"},{"version":"adae20cb2d20e5151b866945f802b0c2312f0f82","status":"affected","lessThan":"4b76fa362110cf1b74a0263c14406b71de99894c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sync.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.19","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_sync.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/18a7c878f887a5d868f2c83237c4c3d041473137"},{"url":"https://git.kernel.org/stable/c/354f5439fb5fb1875e7005b64888edc316b5518e"},{"url":"https://git.kernel.org/stable/c/3fe43efe02798af06b133fcf5e55edf526e9d70e"},{"url":"https://git.kernel.org/stable/c/4c013e768fc8f402cb2bb07e0915de742c5ce564"},{"url":"https://git.kernel.org/stable/c/40441bea279abed2dca12f4876528ae4f0bd1196"},{"url":"https://git.kernel.org/stable/c/4b76fa362110cf1b74a0263c14406b71de99894c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:09.474Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}