GHSA-P94P-QV5V-9J8H
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_core: Keep RCU protection through LTK filtering
The LTK selected by hci_find_ltk() must remain allocated while its value is checked against the blocked-key list. The finder releases RCU before passing k->val to hci_is_blocked_key(). The helper's own RCU section protects the blocked-key list, but the selected LTK may already have been reclaimed before that section starts.
An LE ATT socket security request can reach smp_ltk_encrypt() without holding hdev->lock. With a matching stored LTK and an LTK-type blocked-key entry present, a concurrent MGMT_OP_LOAD_LONG_TERM_KEYS can remove the selected LTK in the following order:
Socket security Management / RCU reclamation hci_find_ltk() rcu_read_lock() select k rcu_read_unlock() load_long_term_keys() hci_dev_lock(hdev) hci_smp_ltks_clear(hdev) list_del_rcu(&k->list) kfree_rcu(k, rcu) grace period ends; k is freed hci_is_blocked_key(..., k->val) memcmp(b->val, val, ...)
The final comparison reads freed LTK bytes. Entering a new RCU section in hci_is_blocked_key() cannot protect a pointer obtained before the completed grace period.
Keep the finder's RCU read-side section active through the blocked-key comparison and the warning that reads k->bdaddr. Release it before returning on either matched-key path. This delays reclamation until the finder has finished using the selected record, following the existing IRK lookup pattern.
KFENCE report as below:
==================================================================
BUG: KFENCE: use-after-free read in hci_is_blocked_key+0xdf/0x240
Use-after-free read at 0x00000000b9ee38e4 (in kfence-#249):
hci_is_blocked_key+0xdf/0x240
blocked_key_wrapper+0xc5/0x140 [pmbd_ltk_probe]
hci_find_ltk+0x1aa/0x3e0
smp_ltk_encrypt.isra.0+0xad/0x340
smp_conn_security+0x3b8/0x8c0
l2cap_sock_setsockopt+0x1c4b/0x2270
do_sock_setsockopt+0x1fb/0x430
__sys_setsockopt+0x106/0x180
__x64_sys_setsockopt+0xc2/0x160
do_syscall_64+0x115/0x6a0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
kfence-#249: 0x00000000121f2ad9-0x000000005b5bfb3d, size=72, cache=kmalloc-96
allocated by task 495 on cpu 0 at 36.722380s (2.603973s ago):
hci_add_ltk+0x1f5/0x3a0
load_long_term_keys+0x6d0/0x860
hci_sock_sendmsg+0x128b/0x22e0
__sys_sendto+0x425/0x470
__x64_sys_sendto+0xe5/0x1c0
do_syscall_64+0x115/0x6a0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
freed by task 533 on cpu 0 at 36.993097s (2.339769s ago):
__rcu_free_sheaf_prepare+0x261/0x2a0
rcu_free_sheaf+0x1f/0xe0
rcu_core+0x661/0x1d10
handle_softirqs+0x201/0x930
__irq_exit_rcu+0x110/0x1e0
irq_exit_rcu+0xe/0x20
sysvec_apic_timer_interrupt+0x6c/0x80
asm_sysvec_apic_timer_interrupt+0x1a/0x20
srso_alias_return_thunk+0x0/0xfbef5
__asan_memcpy+0x23/0x60
create_monitor_ctrl_event+0x1a2/0x460
mgmt_cmd_complete+0x2da/0x580
load_long_term_keys+0x741/0x860
hci_sock_sendmsg+0x128b/0x22e0
__sys_sendto+0x425/0x470
__x64_sys_sendto+0xe5/0x1c0
do_syscall_64+0x115/0x6a0
entry_SYSCALL_64_after_hwframe+0x77/0x7f
CPU: 1 UID: 0 PID: 495 Comm: python3 Tainted: G O 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy)
Tainted: [O]=OOT_MODULE
Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
==================================================================
{
"affected": [],
"aliases": [
"CVE-2026-139379"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:19:05Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_core: Keep RCU protection through LTK filtering\n\nThe LTK selected by hci_find_ltk() must remain allocated while its\nvalue is checked against the blocked-key list. The finder releases RCU\nbefore passing k-\u003eval to hci_is_blocked_key(). The helper\u0027s own RCU\nsection protects the blocked-key list, but the selected LTK may already\nhave been reclaimed before that section starts.\n\nAn LE ATT socket security request can reach smp_ltk_encrypt() without\nholding hdev-\u003elock. With a matching stored LTK and an LTK-type\nblocked-key entry present, a concurrent MGMT_OP_LOAD_LONG_TERM_KEYS can\nremove the selected LTK in the following order:\n\n Socket security Management / RCU reclamation\n hci_find_ltk()\n rcu_read_lock()\n select k\n rcu_read_unlock()\n load_long_term_keys()\n hci_dev_lock(hdev)\n hci_smp_ltks_clear(hdev)\n list_del_rcu(\u0026k-\u003elist)\n kfree_rcu(k, rcu)\n grace period ends; k is freed\n hci_is_blocked_key(..., k-\u003eval)\n memcmp(b-\u003eval, val, ...)\n\nThe final comparison reads freed LTK bytes. Entering a new RCU section\nin hci_is_blocked_key() cannot protect a pointer obtained before the\ncompleted grace period.\n\nKeep the finder\u0027s RCU read-side section active through the blocked-key\ncomparison and the warning that reads k-\u003ebdaddr. Release it before\nreturning on either matched-key path. This delays reclamation until the\nfinder has finished using the selected record, following the existing\nIRK lookup pattern.\n\nKFENCE report as below:\n\n ==================================================================\n BUG: KFENCE: use-after-free read in hci_is_blocked_key+0xdf/0x240\n\n Use-after-free read at 0x00000000b9ee38e4 (in kfence-#249):\n hci_is_blocked_key+0xdf/0x240\n blocked_key_wrapper+0xc5/0x140 [pmbd_ltk_probe]\n hci_find_ltk+0x1aa/0x3e0\n smp_ltk_encrypt.isra.0+0xad/0x340\n smp_conn_security+0x3b8/0x8c0\n l2cap_sock_setsockopt+0x1c4b/0x2270\n do_sock_setsockopt+0x1fb/0x430\n __sys_setsockopt+0x106/0x180\n __x64_sys_setsockopt+0xc2/0x160\n do_syscall_64+0x115/0x6a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n kfence-#249: 0x00000000121f2ad9-0x000000005b5bfb3d, size=72, cache=kmalloc-96\n\n allocated by task 495 on cpu 0 at 36.722380s (2.603973s ago):\n hci_add_ltk+0x1f5/0x3a0\n load_long_term_keys+0x6d0/0x860\n hci_sock_sendmsg+0x128b/0x22e0\n __sys_sendto+0x425/0x470\n __x64_sys_sendto+0xe5/0x1c0\n do_syscall_64+0x115/0x6a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n freed by task 533 on cpu 0 at 36.993097s (2.339769s ago):\n __rcu_free_sheaf_prepare+0x261/0x2a0\n rcu_free_sheaf+0x1f/0xe0\n rcu_core+0x661/0x1d10\n handle_softirqs+0x201/0x930\n __irq_exit_rcu+0x110/0x1e0\n irq_exit_rcu+0xe/0x20\n sysvec_apic_timer_interrupt+0x6c/0x80\n asm_sysvec_apic_timer_interrupt+0x1a/0x20\n srso_alias_return_thunk+0x0/0xfbef5\n __asan_memcpy+0x23/0x60\n create_monitor_ctrl_event+0x1a2/0x460\n mgmt_cmd_complete+0x2da/0x580\n load_long_term_keys+0x741/0x860\n hci_sock_sendmsg+0x128b/0x22e0\n __sys_sendto+0x425/0x470\n __x64_sys_sendto+0xe5/0x1c0\n do_syscall_64+0x115/0x6a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n\n CPU: 1 UID: 0 PID: 495 Comm: python3 Tainted: G O 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy)\n Tainted: [O]=OOT_MODULE\n Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014\n ==================================================================",
"id": "GHSA-p94p-qv5v-9j8h",
"modified": "2026-11-30T15:32:29Z",
"published": "2026-11-30T15:32:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139379"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/06901a982fa1160b05ca38b5c12c25c5531fb84c"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/1ddd195e76a110c7e5a15dc353430a94537a370b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/221fa7cb8df8a8352d342879986d43f9fb51feba"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/5d136e6db3c671a205594945981a916ca7062ae9"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/6f83c171cfbd182a1e898adbd5cd8cb632d11f15"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/817cbcab91fe870e5b69c835cbd708242c9f8c8e"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/c012398a21b54a7c06b4ed388b7abb95c3c90c1b"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/d68a59469c5aca486c0c4588c3da02e5a89a655c"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.