GHSA-PRCF-G7RF-9546

Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-03 12:31
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_sync: Copy the LE accept list under hdev->lock

The LE accept-list mirror consists of bdaddr_list entries that are added, removed and freed under hdev->lock. The ordinary branch of hci_update_accept_list_sync() traverses this list without that lock. The request worker's req_lock does not serialize raw HCI completions, and the RCU sections protect connection and pending-action lookups, not the accept-list nodes.

Changing connectability can reach this iterator through set_connectable_sync(), hci_update_connectable_sync(), hci_update_passive_scan_sync() and hci_passive_scan_sync(). With a populated mirror, a privileged raw HCI sender can issue HCI_OP_LE_CLEAR_ACCEPT_LIST while request work is reconciling it:

Request work HCI event work select b and successor t hci_cc_le_clear_accept_list() hci_dev_lock(hdev) hci_bdaddr_list_clear() unlink nodes and kfree(b) hci_dev_unlock(hdev) read b->bdaddr_type

The clear completion can therefore free the selected node before its field read, or the saved successor before the iterator advances. KASAN reported a one-byte read of bdaddr_type from the freed node.

Copy each entry's address and type under hdev->lock and reconcile the private array instead. Release the mutex before issuing synchronous commands, since their completion handlers also acquire it. Free the copy after iteration and use the existing error path to disable accept-list filtering if allocation fails.

This change has not been runtime-tested.

KASAN report as below:

==================================================================
BUG: KASAN: slab-use-after-free in hci_passive_scan_sync+0x1cc4/0x1f80
Read of size 1 at addr ffff888105ee6c56 by task kworker/u17:1/499

Workqueue: hci0 hci_cmd_sync_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x93/0xd0
 print_report+0xce/0x630
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __virt_addr_valid+0x20d/0x410
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 kasan_report+0xe0/0x110
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 hci_passive_scan_sync+0x1cc4/0x1f80
 ? pmbd_gate_site_armed+0x31/0x1c0
 ? __pfx_hci_passive_scan_sync+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? pmbd_probe_hit_cookie+0x10/0x1c0
 ? __pfx_pmbd_probe_hit_cookie+0x10/0x10
 ? hci_update_passive_scan_sync+0x43f/0x9e0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_release+0xc8/0x280
 hci_update_passive_scan_sync+0x473/0x9e0
 hci_update_connectable_sync+0x13c/0x250
 set_connectable_sync+0x39/0xb0
 hci_cmd_sync_work+0x1b3/0x450
 ? srso_alias_return_thunk+0x5/0xfbef5
 process_one_work+0x908/0x19c0
 ? __pfx_process_one_work+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_is_held_type+0x8f/0x100
 ? srso_alias_return_thunk+0x5/0xfbef5
 worker_thread+0x65c/0xe40
 ? __pfx_worker_thread+0x10/0x10
 kthread+0x34f/0x460
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x659/0x940
 ? __pfx_ret_from_fork+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __switch_to+0x74f/0xf80
 ? __pfx_kthread+0x10/0x10
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 511:
 kasan_save_stack+0x33/0x60
 kasan_save_track+0x14/0x30
 __kasan_kmalloc+0xaa/0xb0
 __kmalloc_cache_noprof+0x251/0x610
 hci_bdaddr_list_add+0x179/0x390
 hci_cc_le_add_to_accept_list+0x189/0x2d0
 hci_cmd_complete_evt+0x373/0xab0
 hci_event_packet+0x4e8/0xc70
 hci_rx_work+0x367/0xf00
 process_one_work+0x908/0x19c0
 worker_thread+0x65c/0xe40
 kthread+0x34f/0x460
 ret_from_fork+

---truncated---

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-143315"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T10:18:18Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: hci_sync: Copy the LE accept list under hdev-\u003elock\n\nThe LE accept-list mirror consists of bdaddr_list entries that are\nadded, removed and freed under hdev-\u003elock. The ordinary branch of\nhci_update_accept_list_sync() traverses this list without that lock.\nThe request worker\u0027s req_lock does not serialize raw HCI completions,\nand the RCU sections protect connection and pending-action lookups,\nnot the accept-list nodes.\n\nChanging connectability can reach this iterator through\nset_connectable_sync(), hci_update_connectable_sync(),\nhci_update_passive_scan_sync() and hci_passive_scan_sync(). With a\npopulated mirror, a privileged raw HCI sender can issue\nHCI_OP_LE_CLEAR_ACCEPT_LIST while request work is reconciling it:\n\n  Request work                    HCI event work\n  select b and successor t\n                                  hci_cc_le_clear_accept_list()\n                                    hci_dev_lock(hdev)\n                                    hci_bdaddr_list_clear()\n                                      unlink nodes and kfree(b)\n                                    hci_dev_unlock(hdev)\n  read b-\u003ebdaddr_type\n\nThe clear completion can therefore free the selected node before its\nfield read, or the saved successor before the iterator advances.\nKASAN reported a one-byte read of bdaddr_type from the freed node.\n\nCopy each entry\u0027s address and type under hdev-\u003elock and reconcile the\nprivate array instead. Release the mutex before issuing synchronous\ncommands, since their completion handlers also acquire it. Free the\ncopy after iteration and use the existing error path to disable\naccept-list filtering if allocation fails.\n\nThis change has not been runtime-tested.\n\nKASAN report as below:\n\n    ==================================================================\n    BUG: KASAN: slab-use-after-free in hci_passive_scan_sync+0x1cc4/0x1f80\n    Read of size 1 at addr ffff888105ee6c56 by task kworker/u17:1/499\n\n    Workqueue: hci0 hci_cmd_sync_work\n    Call Trace:\n     \u003cTASK\u003e\n     dump_stack_lvl+0x93/0xd0\n     print_report+0xce/0x630\n     ? hci_passive_scan_sync+0x1cc4/0x1f80\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? __virt_addr_valid+0x20d/0x410\n     ? hci_passive_scan_sync+0x1cc4/0x1f80\n     kasan_report+0xe0/0x110\n     ? hci_passive_scan_sync+0x1cc4/0x1f80\n     hci_passive_scan_sync+0x1cc4/0x1f80\n     ? pmbd_gate_site_armed+0x31/0x1c0\n     ? __pfx_hci_passive_scan_sync+0x10/0x10\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? pmbd_probe_hit_cookie+0x10/0x1c0\n     ? __pfx_pmbd_probe_hit_cookie+0x10/0x10\n     ? hci_update_passive_scan_sync+0x43f/0x9e0\n     ? srso_alias_return_thunk+0x5/0xfbef5\n     ? lock_release+0xc8/0x280\n     hci_update_passive_scan_sync+0x473/0x9e0\n     hci_update_connectable_sync+0x13c/0x250\n     set_connectable_sync+0x39/0xb0\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     \u003c/TASK\u003e\n\n    Allocated by task 511:\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_bdaddr_list_add+0x179/0x390\n     hci_cc_le_add_to_accept_list+0x189/0x2d0\n     hci_cmd_complete_evt+0x373/0xab0\n     hci_event_packet+0x4e8/0xc70\n     hci_rx_work+0x367/0xf00\n     process_one_work+0x908/0x19c0\n     worker_thread+0x65c/0xe40\n     kthread+0x34f/0x460\n     ret_from_fork+\n---truncated---",
  "id": "GHSA-prcf-g7rf-9546",
  "modified": "2026-12-03T12:31:11Z",
  "published": "2026-12-03T12:31:11Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143315"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/674006912777747170ad70d7727804ad4f2d047f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d2c150bd9460f0df9359174fe89f68f36692f8c7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f08480cad352f560781dfd26194150deec3d6039"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f18a5502805a29ce6a0d314031a83a4d3869483d"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

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.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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

JSON
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.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    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.