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 03D351A724C for ; Mon, 8 Dec 2025 00:48:53 +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=1765154934; cv=none; b=PvtQNHnfuAyT6jiD5gMS7AbHGRDjzRdj8Wtx9MzLRkTQKqX8MVJhHBrE2nr4y0izLCPzQXXa7LOq09BFzrs75psRNAQgQyHvHPz6gv9y6fj4QWAe2U5QGk4YU8074UP/BD1kkTH/TDmPI4bfv/oKimlAuDa+WBZgEimcP93Zd4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765154934; c=relaxed/simple; bh=W7+FaFHysIQG4GoBsrl5RsN+7DWaHAC3lUnmeVZegf0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IoT70G9P91NiQyUY4f2s1WnByPSCwDv844Ejkda1/70JOdJvShV8oOfWYthwzooOWWTZ4FndUu/v0V6giSjBADEW8in0UDFamEDLqHx4RH9XoGcTzFuIC9SUoDZJtO+iOXPK2eHy78xS605PJ2jfVfzdp25lwOX9YipH374fqzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WSxW9EnW; 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="WSxW9EnW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43A2CC16AAE; Mon, 8 Dec 2025 00:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765154933; bh=W7+FaFHysIQG4GoBsrl5RsN+7DWaHAC3lUnmeVZegf0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WSxW9EnWKdAL9k8hfYOgYxbzi1Aey7euheB8gCLJe+HkXmDsoHOMbjFln/HGCooeI eEFJvdSE0aTtb38tUAbTXdQGZWan15arLPTA2GIL36jeb9jU65jVH4Cye1bra/Vbaq ivrG/T9KF4kJvheuYkFbKytAusvvIJV+y8gaeGvs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40301: Bluetooth: hci_event: validate skb length for unknown CC opcode Date: Mon, 8 Dec 2025 09:47:25 +0900 Message-ID: <2025120819-CVE-2025-40301-4d3b@gregkh> X-Mailer: git-send-email 2.52.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=2845; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x9vcbD1lBmsW/hbD+vNwv2y74VeRU04/l6nXKtd2h/0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlmCuJlcfMPH1JYuzt//lnxdynxnzsdWly2mzVWdORJW Ku57jnTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOROMQwPyPq6V9/nWc/2F9H NXvL+4WoWdcYMszP4WcUD/y2PoPt665zC9bfvsKkcnQ3AA== 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: hci_event: validate skb length for unknown CC opcode In hci_cmd_complete_evt(), if the command complete event has an unknown opcode, we assume the first byte of the remaining skb->data contains the return status. However, parameter data has previously been pulled in hci_event_func(), which may leave the skb empty. If so, using skb->data[0] for the return status uses un-init memory. The fix is to check skb->len before using skb->data. The Linux kernel CVE team has assigned CVE-2025-40301 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit afcb3369f46ed5dc883a7b92f2dd1e264d79d388 and fixed in 6.1.159 with commit fea895de78d3bb2f0c09db9f10b18f8121b15759 Issue introduced in 6.1 with commit afcb3369f46ed5dc883a7b92f2dd1e264d79d388 and fixed in 6.6.117 with commit 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8 Issue introduced in 6.1 with commit afcb3369f46ed5dc883a7b92f2dd1e264d79d388 and fixed in 6.12.58 with commit cf2c2acec1cf456c3d11c11a7589e886a0f963a9 Issue introduced in 6.1 with commit afcb3369f46ed5dc883a7b92f2dd1e264d79d388 and fixed in 6.17.8 with commit 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50 Issue introduced in 6.1 with commit afcb3369f46ed5dc883a7b92f2dd1e264d79d388 and fixed in 6.18 with commit 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5 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-2025-40301 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/fea895de78d3bb2f0c09db9f10b18f8121b15759 https://git.kernel.org/stable/c/779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8 https://git.kernel.org/stable/c/cf2c2acec1cf456c3d11c11a7589e886a0f963a9 https://git.kernel.org/stable/c/1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50 https://git.kernel.org/stable/c/5c5f1f64681cc889d9b13e4a61285e9e029d6ab5