Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793026353; b=AkfWr1suncERMSY2W0niUlCSDnUwU31Qw+/T238YM1/+X4XHCFJ/syacS+U2z8VpEeoQ 5AU/2X4iZfh2VKZtm2YlGTMb62Su/M5wGMjMQzNOH139dVLNfbBPAJoGdrzwfC5okS9a+ 05VzZHlCfJAkLtUWAeMVTB7HE8LP7Kuz2DxgKaxssT3nWOXhavuz01+cRHxZMkGTh/z9C FZ0AlpQ/S8HJ1OEuec78C7LrtmprGDX6HR8dYlMrs9sy8gDKHZROYVWetxWxw0gWorUzb z/Sh1FnoVjv9sD3p6EERP0TSXhiQdQZtgRwTjZzlImaK4GrOSYlBFjqMFFUgcUN0ltg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793026353; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Q2gaVBw3UJBIzRAWEaCbuS7AU4EJiDjc09sfVcQ5R2w=; b=eqbF4gq1Kcl7BmVZ2RiTLoQDSJN+V3ko1gKZIu25CiWTx4cT3cPqeRlb/XMBtHZjPkEo nnFrR0U61IGVPOteaJqxCCz3sZgnC5V8UeqiiMChBUejaYxo/CksAzHCbesTn4MG/hnmF YjZggo0UA2Mnsy/6goPln1GlmselHo3Yoh35rEHnyebQb9f4U6Ee1yvcFjdHNy7qbh2ak ELjAEHKoLjwzdbRltPdsM29/nx4HDS9cmnS4+5hiGquieqv2kXDTWYD2b18XM3GrDZboK uED/BlIFqwl9A3j//VxOdnxeax9zpKtWSO6abE3RxRbiKNZ0Tj+8L1bydc+6+XCAa0w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jd2RzMJi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0308B606A31D for ; Mon, 26 Oct 2026 14:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jd2RzMJi Received: by smtp.kernel.org (Postfix) with ESMTPSA id 029E21F01828; Mon, 26 Oct 2026 14:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793026352; bh=Q2gaVBw3UJBIzRAWEaCbuS7AU4EJiDjc09sfVcQ5R2w=; h=From:To:Cc:Subject:Date:Reply-To; b=jd2RzMJipD7o5RW4Ki6hsL/+w3rJdv1u4TMXz8HT4CjfT3TlwOctpFqxLeRD/AXBF EIcvwxabBXmxqMNdt7939gmTPb7ewvBcT3bpSMVKQdS5Sh2A1cynlx9hCoyX9XxrR2 PUWRMscOQrCMpp3SF4/wMG5+j8/jvpaey4TENtkA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99091: Bluetooth: MGMT: Fix status of pending commands flushed on power off Date: Mon, 26 Oct 2026 15:52:13 +0100 Message-ID: <2026102612-CVE-2026-99091-f1a6@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4447; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HcRH/KcgsK9+hQXvcSN2kXyLBKFffxPFuSF9R++eyZs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn3M2Wy7LU678w/v7zd7MsCrTl/7u9ne25eK/yqv6Lwa AWvYlVrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkZzHDPM2ZC2Q+sXG3q3Qf 3nvlWVlhyc417xnmh3ir1mQ9exC3KreWv0baVyVT5pM7AA== 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: MGMT: Fix status of pending commands flushed on power off cmd_complete_rsp() receives a struct cmd_lookup and, for a pending command that has no cmd_complete callback, falls through to cmd_status_rsp(cmd, data). cmd_status_rsp() reads data as a u8 *, so the status sent comes from the first byte of match->sk's representation, not from match->mgmt_status. commit f53e1c9c726d ("Bluetooth: MGMT: Fix possible crash on mgmt_index_removed") changed the callers' data from &status to &match and updated the cmd_complete branch to match->mgmt_status, but left the fall-through passing data unchanged. In mgmt_index_removed() match->sk is NULL, so every such command is answered with status 0x00 (Success) instead of MGMT_STATUS_INVALID_INDEX. In __mgmt_power_off() it is NULL too, unless a Set Powered command was pending: then settings_rsp() has stored that command's socket in match->sk, and the byte sent comes from the socket pointer. Either way the status the caller set, MGMT_STATUS_NOT_POWERED (or MGMT_STATUS_INVALID_INDEX when the device is being unregistered), is lost. Pass the status the callers set. This was seen on a QCA9377 laptop: bluetoothd's Start Discovery, pending when the adapter was powered off, was answered with Command Status 0x00 and no parameters, and bluetoothd 5.72 crashed on the zero-length success. BlueZ master has since added the length check on that path ("adapter: Fix crash on short start discovery reply", BlueZ a734b06059cb), but userspace should still be told Not Powered, not Success. Tested on Ubuntu 7.0.0-31 with a virtual controller (hci_vhci): power off is held in HCI Write Scan Enable while a Start Discovery is submitted, and the flush answers it with status 0x00 before this change and 0x0f (Not Powered) after. The Linux kernel CVE team has assigned CVE-2026-99091 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.55 with commit 4883296505aa7e4863c6869b689afb6005633b23 and fixed in 6.6.160 with commit 44ce36c5789ac84e65de1e98c32db9a5ac04ed47 Issue introduced in 6.12 with commit f53e1c9c726d83092167f2226f32bd3b73f26c21 and fixed in 6.12.113 with commit 7ed7e038b520cf0dfa12d61c2caddb95e2f6922d Issue introduced in 6.12 with commit f53e1c9c726d83092167f2226f32bd3b73f26c21 and fixed in 6.18.57 with commit ec227cddd13cd7ac9077d263a73473ac370a055d Issue introduced in 6.12 with commit f53e1c9c726d83092167f2226f32bd3b73f26c21 and fixed in 7.2.11 with commit 07976405a3c71253e50533ee7b7a8b0dc16ab6ba Issue introduced in 6.12 with commit f53e1c9c726d83092167f2226f32bd3b73f26c21 and fixed in 7.3 with commit 86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc Issue introduced in 6.1.120 with commit 19b40ca62607cef78369549d1af091f2fd558931 Issue introduced in 6.10.14 with commit 0cc47233af35fb5f10b5e6a027cb4ccd480caf9a Issue introduced in 6.11.3 with commit 8c3f7943a29145d8a2d8e24893762f7673323eae 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-99091 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/mgmt.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/44ce36c5789ac84e65de1e98c32db9a5ac04ed47 https://git.kernel.org/stable/c/7ed7e038b520cf0dfa12d61c2caddb95e2f6922d https://git.kernel.org/stable/c/ec227cddd13cd7ac9077d263a73473ac370a055d https://git.kernel.org/stable/c/07976405a3c71253e50533ee7b7a8b0dc16ab6ba https://git.kernel.org/stable/c/86ef0f58bdecdedb3a1240971c56d71b7e4ce3fc