Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E27C426E718 for ; Wed, 22 Apr 2026 13:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866304; cv=none; b=SHWbh2/4j/cxK3MRARLC76YoDG97suiAZD1ivM5slEB5X1smGISntfZsouZm6iITU9kSYjasicMj1dOOnN1zHXKnyyQtKPXewtbAdiSiAsfrVsMN05/PIubh/tVqX06t+s5SL28u5mPJ7raSBVKC9Fh999KaV4UFaTNCi89clN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866304; c=relaxed/simple; bh=ZkJHeAwFdcSvAgmkaridW5oVs643MJLnPupBRDwEQoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=R/8Bog131JoQHvaZa8NVookYmWgfp3WT/cXLxAO8/VstCTCPk9DivB632SfvPcSJbH6+u6qhN8lgHtdV1Ou7fKVFBJJeKfzHQhaAnFxNLTbYAbq9AVFAkytOghWzTY9aYQikAqAoWTb+j25FIlWdJqJ9/p7bqN6szFtYkPCdAJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B8G8fDge; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B8G8fDge" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78AC2C2BCAF; Wed, 22 Apr 2026 13:58:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866303; bh=ZkJHeAwFdcSvAgmkaridW5oVs643MJLnPupBRDwEQoM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=B8G8fDgeRVocIlK6Z5649GzsC5HZ4Da4b+FgPdsp9jZyR0sJu4BjOGmk1/kxH+Y6e zi9PFdCFIVmPcSeazIXNU3+zQe+ICFpvK1koKoeGkSRPUJ34s4tR8lrXy8H1wbgQc6 5hY4hdAeT1KzLQH6QQCr6Dmx3pej0CbBQKYxI/hM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31500: Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock Date: Wed, 22 Apr 2026 15:54:46 +0200 Message-ID: <2026042204-CVE-2026-31500-c032@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4133; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YOGQ4Gbqi0TgX5qi85QJaRQCw75TAy1xHTqgzty0mKs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv19ynWo6YrumdNzD/u2dzjXPjQOkWK5bPBC2vLE2 Q1797tN6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7O1kmB+5ePGVlv1efTu9 vu1IXM8SE5A/lYNhwRH221GeVkf/3Khr4Xbv/eBaFt3kAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock btintel_hw_error() issues two __hci_cmd_sync() calls (HCI_OP_RESET and Intel exception-info retrieval) without holding hci_req_sync_lock(). This lets it race against hci_dev_do_close() -> btintel_shutdown_combined(), which also runs __hci_cmd_sync() under the same lock. When both paths manipulate hdev->req_status/req_rsp concurrently, the close path may free the response skb first, and the still-running hw_error path hits a slab-use-after-free in kfree_skb(). Wrap the whole recovery sequence in hci_req_sync_lock/unlock so it is serialized with every other synchronous HCI command issuer. Below is the data race report and the kasan report: BUG: data-race in __hci_cmd_sync_sk / btintel_shutdown_combined read of hdev->req_rsp at net/bluetooth/hci_sync.c:199 by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x114/0x670 drivers/bluetooth/btintel.c:254 hci_error_reset+0x348/0xa30 net/bluetooth/hci_core.c:1030 write/free by task ioctl/22580: btintel_shutdown_combined+0xd0/0x360 drivers/bluetooth/btintel.c:3648 hci_dev_close_sync+0x9ae/0x2c10 net/bluetooth/hci_sync.c:5246 hci_dev_do_close+0x232/0x460 net/bluetooth/hci_core.c:526 BUG: KASAN: slab-use-after-free in sk_skb_reason_drop+0x43/0x380 net/core/skbuff.c:1202 Read of size 4 at addr ffff888144a738dc by task kworker/u17:1/83: __hci_cmd_sync_sk+0x12f2/0x1c30 net/bluetooth/hci_sync.c:200 __hci_cmd_sync+0x55/0x80 net/bluetooth/hci_sync.c:223 btintel_hw_error+0x186/0x670 drivers/bluetooth/btintel.c:260 The Linux kernel CVE team has assigned CVE-2026-31500 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 973bb97e5aee56edddaae3d5c96877101ad509c0 and fixed in 6.6.131 with commit 5f84e845648dfa86e42de5487f1a774b42f0444d Issue introduced in 4.3 with commit 973bb97e5aee56edddaae3d5c96877101ad509c0 and fixed in 6.12.80 with commit e10a4cb72468686ffbe8bb2b0520e37f6be1a0c5 Issue introduced in 4.3 with commit 973bb97e5aee56edddaae3d5c96877101ad509c0 and fixed in 6.18.21 with commit 66696648af477dc87859e5e4b607112f5f29d010 Issue introduced in 4.3 with commit 973bb97e5aee56edddaae3d5c96877101ad509c0 and fixed in 6.19.11 with commit f7d84737663ad4a120d2d8ef1561a4df91282c2e Issue introduced in 4.3 with commit 973bb97e5aee56edddaae3d5c96877101ad509c0 and fixed in 7.0 with commit 94d8e6fe5d0818e9300e514e095a200bd5ff93ae 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-31500 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: drivers/bluetooth/btintel.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/5f84e845648dfa86e42de5487f1a774b42f0444d https://git.kernel.org/stable/c/e10a4cb72468686ffbe8bb2b0520e37f6be1a0c5 https://git.kernel.org/stable/c/66696648af477dc87859e5e4b607112f5f29d010 https://git.kernel.org/stable/c/f7d84737663ad4a120d2d8ef1561a4df91282c2e https://git.kernel.org/stable/c/94d8e6fe5d0818e9300e514e095a200bd5ff93ae