{"id":"CVE-2023-54210","state":"PUBLISHED","title":"Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()\n\nKASAN reports that there's a use-after-free in\nhci_remove_adv_monitor(). Trawling through the disassembly, you can\nsee that the complaint is from the access in bt_dev_dbg() under the\nHCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because\nmsft_remove_monitor() can end up freeing the monitor\nstructure. Specifically:\n  hci_remove_adv_monitor() ->\n  msft_remove_monitor() ->\n  msft_remove_monitor_sync() ->\n  msft_le_cancel_monitor_advertisement_cb() ->\n  hci_free_adv_monitor()\n\nLet's fix the problem by just stashing the relevant data when it's\nstill valid.","publishedAt":"2025-12-30T12:11:08.682Z","updatedAt":"2026-10-15T21:41:41.692Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"0d4d6b083da9b033ddccef72d77f373c819ae3ea","versionType":"git"},{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"bf00c2c8f6254f44ac041aa9a311ae9e0caf692b","versionType":"git"},{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"de6dfcefd107667ce2dbedf4d9337f5ed557a4a1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.42","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.7","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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_core.c"]}],"references":["https://git.kernel.org/stable/c/0d4d6b083da9b033ddccef72d77f373c819ae3ea","https://git.kernel.org/stable/c/bf00c2c8f6254f44ac041aa9a311ae9e0caf692b","https://git.kernel.org/stable/c/de6dfcefd107667ce2dbedf4d9337f5ed557a4a1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54210.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54210","state":"PUBLISHED","datePublished":"2025-12-30T12:11:08.682Z","dateUpdated":"2026-10-15T21:41:41.692Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:44.500Z"},"containers":{"cna":{"title":"Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()\n\nKASAN reports that there's a use-after-free in\nhci_remove_adv_monitor(). Trawling through the disassembly, you can\nsee that the complaint is from the access in bt_dev_dbg() under the\nHCI_ADV_MONITOR_EXT_MSFT case. The problem case happens because\nmsft_remove_monitor() can end up freeing the monitor\nstructure. Specifically:\n  hci_remove_adv_monitor() ->\n  msft_remove_monitor() ->\n  msft_remove_monitor_sync() ->\n  msft_le_cancel_monitor_advertisement_cb() ->\n  hci_free_adv_monitor()\n\nLet's fix the problem by just stashing the relevant data when it's\nstill valid."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"0d4d6b083da9b033ddccef72d77f373c819ae3ea","versionType":"git"},{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"bf00c2c8f6254f44ac041aa9a311ae9e0caf692b","versionType":"git"},{"version":"7cf5c2978f23fdbb2dd7b4e8b07e362ae2d8211c","status":"affected","lessThan":"de6dfcefd107667ce2dbedf4d9337f5ed557a4a1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.42","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.7","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0d4d6b083da9b033ddccef72d77f373c819ae3ea"},{"url":"https://git.kernel.org/stable/c/bf00c2c8f6254f44ac041aa9a311ae9e0caf692b"},{"url":"https://git.kernel.org/stable/c/de6dfcefd107667ce2dbedf4d9337f5ed557a4a1"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only through a local `AF_BLUETOOTH` HCI control socket carrying `MGMT_OP_REMOVE_ADV_MONITOR` (or via bluetoothd acting on a local D-Bus client); no Bluetooth peer, radio frame, or network packet participates in triggering the free-then-read.\nAC:L - The attacker deterministically drives the sequence by adding an advertisement monitor and then removing it — no race must be won, and on MSFT-capable controllers (Intel/Realtek/Qualcomm/MediaTek, i.e. most real hardware) the offending branch is the default path.\nPR:L - The mgmt handler nominally requires a trusted socket, but on stock Linux/ChromeOS systems an unprivileged local user drives the exact same add/remove monitor sequence through BlueZ's AdvertisementMonitorManager1 D-Bus interface, and monitors are auto-removed when the unprivileged client disconnects.\nUI:N - The attacking process performs the register/unregister sequence itself; no victim action, mount, or file open is needed.\nS:U - The freed object, the stale read, and the resulting impact all live in the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a use-after-free read of a freed slab object whose contents can be groomed during the sleeping `msft_remove_addr_filters_sync()` window, and the recycled heap contents are emitted into the kernel log — a repeatable heap-disclosure primitive usable against KASLR.\nI:H - Use-after-free of a `struct adv_monitor` with an attacker-influenceable reallocation window is a memory-corruption class defect; the dangling reference to a reclaimed slab object is the standard building block for heap-spray driven corruption.\nA:H - Dereferencing the freed monitor oopses the kernel when the backing slab page has been returned to the page allocator or under KASAN/panic_on_warn, and the sequence can be repeated at will to crash the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:18:04.882Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.4.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-54210","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:39:22.862450Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:41.692Z"}}]}}}