Skip to contentSkip to conversation

CVE-2026-99013: Bluetooth: ISO: Reject concurrent BIS listener setup

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: ISO: Reject concurrent BIS listener setup

iso_sock_listen() drops the socket lock before calling iso_listen_bis() to preserve the hdev->lock ordering. Two concurrent listen() calls on the same broadcast socket can therefore both observe BT_BOUND. Caller A can attach connA and release the locks, then caller B can acquire them and attach connB before A publishes BT_LISTEN.

__iso_chan_add() checks whether connB already has a socket, but not whether the socket already has a connection. The second attachment overwrites iso_pi(sk)->conn, leaking the connA reference and leaving connA->sk intact. Socket teardown follows connB, so later events on connA can cause a stale socket access.

Recheck BT_BOUND and require iso_pi(sk)->conn to be NULL after taking both the HCI device and socket locks in iso_listen_bis(). The connection check also covers the interval between attachment and publication of BT_LISTEN. Reject a competing setup with -EBADFD through the existing unlock path before allocating another connection.

A recorded KASAN report from an instrumented kernel shows:

  BUG: KASAN: slab-use-after-free in iso_sock_hold+0x119/0x1f0
  Call Trace:
   iso_sock_hold+0x119/0x1f0
   iso_conn_del+0xe4/0x270
   hci_disconn_complete_evt+0x351/0x8c0
   hci_event_packet+0x71b/0xb20
   hci_rx_work+0x293/0x730

  Allocated by task 93:
   sk_prot_alloc+0x113/0x220
   sk_alloc+0x2b/0x6d0
   bt_sock_alloc+0x29/0x370
   iso_sock_alloc.constprop.0+0x19/0x300
   iso_sock_create+0x94/0x100

  Freed by task 93:
   kfree+0x121/0x3c0
   __sk_destruct+0x42b/0x540
   iso_sock_release+0x29d/0x340
   __sock_release+0xa1/0x260
   sock_close+0x10/0x20

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

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

	Issue introduced in 6.12.6 with commit c541d7b5e17987ed330798b07d4ad508859c1c93 and fixed in 6.12.113 with commit 559e4d2b6f83aaa96061659cc7104b7a0293f9ef
	Issue introduced in 6.13 with commit 168e28305b871d8ec604a8f51f35467b8d7ba05b and fixed in 6.18.57 with commit 90b744066ca520d1a6a505a11ade9c9a5f48accf
	Issue introduced in 6.13 with commit 168e28305b871d8ec604a8f51f35467b8d7ba05b and fixed in 7.2.11 with commit 79993e9919a87068183ba3622c383f05c049c4bc
	Issue introduced in 6.13 with commit 168e28305b871d8ec604a8f51f35467b8d7ba05b and fixed in 7.3 with commit 555ff78fa719f50ff4cdbdb40aa1acc6e8e327d3

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-99013

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/iso.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/559e4d2b6f83aaa96061659cc7104b7a0293f9ef
	https://git.kernel.org/stable/c/90b744066ca520d1a6a505a11ade9c9a5f48accf
	https://git.kernel.org/stable/c/79993e9919a87068183ba3622c383f05c049c4bc
	https://git.kernel.org/stable/c/555ff78fa719f50ff4cdbdb40aa1acc6e8e327d3