Skip to contentSkip to conversation

CVE-2026-80764: Bluetooth: hci_event: fix LE list UAF on reset

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

Bluetooth: hci_event: fix LE list UAF on reset

hci_cc_reset() clears the LE accept and resolving lists without taking hdev->lock. Other command-complete handlers serialize updates to these lists with that lock, and the debugfs readers hold it while walking them.

This permits the reset completion and a debugfs read to interleave as follows:

hci_rx_work debugfs reader
----------- --------------
lock hdev->lock
fetch current entry
list_del(entry)
kfree(entry)
read entry fields

The reader then dereferences a freed list entry and may follow its stale next pointer.

KASAN reported:

  BUG: KASAN: slab-use-after-free in white_list_show+0x15f/0x180
  Read of size 1 at addr ffff8881015dab16 by task poc/95

  Call Trace:
   white_list_show+0x15f/0x180
   seq_read_iter+0x3ff/0x1190
   seq_read+0x267/0x3d0
   vfs_read+0x177/0xa20
   ksys_read+0xf7/0x1c0

  Allocated by task 91:
   hci_bdaddr_list_add+0x1a6/0x3a0
   hci_cc_le_add_to_accept_list+0xab/0x140
   hci_cmd_complete_evt+0x26c/0x9a0
   hci_event_packet+0x454/0xb20
   hci_rx_work+0x293/0x730

  Freed by task 90:
   kfree+0x131/0x3c0
   hci_bdaddr_list_clear+0xd8/0x160
   hci_cc_reset+0x28a/0x370
   hci_cmd_complete_evt+0x26c/0x9a0
   hci_event_packet+0x454/0xb20
   hci_rx_work+0x293/0x730

Take hdev->lock around both list clears. This matches the existing mutation and traversal locking convention.

The Linux kernel CVE team has assigned CVE-2026-80764 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 6.1.185 with commit 8e68c380290b1dd64a0a512ce66d0264130c46ed
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 6.6.154 with commit 0628cc9b2fa29985a7b8c774741f8a736b0f5e7c
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 6.12.106 with commit d57702d4c55633c243da5a2fec37ae2ad4adb621
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 6.18.47 with commit 39a3afb91be3cb465f46ce7a8e5696d9e33edf93
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 7.1.11 with commit b55e83a4ba31d40deae22d4e4dc8c84083e953c6
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 7.2.1 with commit 25b05e3ce31d954540e99954bcc66cbceb27ab35
	Issue introduced in 3.19 with commit a4d5504d5c39cc84f1f828e19967595597a8136e and fixed in 7.3-rc1 with commit 33af47e847fe4a28b109673affb5874015d54f5a
	Issue introduced in 3.18.3 with commit 0de8cd646b0152c9ddd10257d8284938d0df0181

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80764

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/bluetooth/hci_event.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/8e68c380290b1dd64a0a512ce66d0264130c46ed
	https://git.kernel.org/stable/c/0628cc9b2fa29985a7b8c774741f8a736b0f5e7c
	https://git.kernel.org/stable/c/d57702d4c55633c243da5a2fec37ae2ad4adb621
	https://git.kernel.org/stable/c/39a3afb91be3cb465f46ce7a8e5696d9e33edf93
	https://git.kernel.org/stable/c/b55e83a4ba31d40deae22d4e4dc8c84083e953c6
	https://git.kernel.org/stable/c/25b05e3ce31d954540e99954bcc66cbceb27ab35
	https://git.kernel.org/stable/c/33af47e847fe4a28b109673affb5874015d54f5a