CVE-2026-46138: Bluetooth: hci_event: Fix OOB read and infinite loop in hci_le_create_big_complete_evt
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_event: Fix OOB read and infinite loop in hci_le_create_big_complete_evt
hci_le_create_big_complete_evt() iterates over BT_BOUND connections for a BIG handle using a while loop, accessing ev->bis_handle[i++] on each iteration. However, there is no check that i stays within ev->num_bis before the array access.
When a controller sends a LE_Create_BIG_Complete event with fewer bis_handle entries than there are BT_BOUND connections for that BIG, or with num_bis=0, the loop reads beyond the valid bis_handle[] flex array into adjacent heap memory. Since the out-of-bounds values typically exceed HCI_CONN_HANDLE_MAX (0x0EFF), hci_conn_set_handle() rejects them and the connection remains in BT_BOUND state. The same connection is then found again by hci_conn_hash_lookup_big_state(), creating an infinite loop with hci_dev_lock held.
Fix this by terminating the BIG if in case not all BIS could be setup properly.
The Linux kernel CVE team has assigned CVE-2026-46138 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.6.140 with commit 6cb7f67bc28da787499291a562d49a084d9c90cd Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.12.88 with commit 22559ad7654f61727fc270ee4893da9f4b70cf17 Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 6.18.30 with commit 77981a507aa0fc001dc37f0dd6631dd2042fed17 Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 7.0.7 with commit 665da0baaf0396f9ed3c86ccb3955dcd0b73e774 Issue introduced in 6.6 with commit a0bfde167b506423111ddb8cd71930497a40fc54 and fixed in 7.1-rc3 with commit 5ddb8014261137cadaf83ab5617a588d80a22586 Issue introduced in 6.4.16 with commit b475c1109251e30ec21fb574d72a1c71a4ab0039 Issue introduced in 6.5.3 with commit 2ccde10127447c1a5caad8469fede945bdb62fdf
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-46138
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/6cb7f67bc28da787499291a562d49a084d9c90cd https://git.kernel.org/stable/c/22559ad7654f61727fc270ee4893da9f4b70cf17 https://git.kernel.org/stable/c/77981a507aa0fc001dc37f0dd6631dd2042fed17 https://git.kernel.org/stable/c/665da0baaf0396f9ed3c86ccb3955dcd0b73e774 https://git.kernel.org/stable/c/5ddb8014261137cadaf83ab5617a588d80a22586