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 2CA2E2D29AB for ; Thu, 3 Jul 2025 08:36:52 +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=1751531812; cv=none; b=VE0+Str9IX+8BZlyKP86tbxGppZRmih311e5lhLgjtKonljgorCWq9qQDxQ8wPZFLn/bWGrvrHQ1nqh/R/id2Dr+fQI08LKU/vGWgpJxLllmAkwglhhC+V+mTYDL/LppISfJBpSkTyPr+KRbfC+lEfq4l2XGhx3zrYEY8Zh9opw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531812; c=relaxed/simple; bh=0RI5PWrhrOi2a1sDYL1Lh1gnmjTSnGvvSviMB5XOY1I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A0Z91fCQsbxvTmDHR1I7DxZM/thY+fUB1voy3jySGQ3ZM4vzb/2HcK9tGjT8SFoggCmjGNpQeU2qqTOcDo2+2gSZLe6bQAUaUIEOdryFdGXc7r+0SSHWUqHQYMiqTcCbyPQYnTnzx+vecO0n0S7FL9RNOfwSG81YihuLQOoo0Q0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CsX/FwC+; 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="CsX/FwC+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9154CC4CEEB; Thu, 3 Jul 2025 08:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531812; bh=0RI5PWrhrOi2a1sDYL1Lh1gnmjTSnGvvSviMB5XOY1I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CsX/FwC+0eDo4Ylv6U5EPvhM02lwbIi3XfONINvzizTL2jDT4MWaOzdIESKgZSfki JWFBdwUT9cio+UztKrQjwUOXFnkhlLw3j54J0U8PiixYnLxuWcfdBF1FH5CjD9MBiQ eNBbyfqdrDkO5byp/3V0eUaP4L7QxPKjO7m+WZR4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38128: Bluetooth: MGMT: reject malformed HCI_CMD_SYNC commands Date: Thu, 3 Jul 2025 10:35:45 +0200 Message-ID: <2025070329-CVE-2025-38128-5b44@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2136; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H7sMCaDV+S3GKfiWEbIfahe1Ce7YH9DlOnU9bgwaxdE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDhd9PRO2uamKR3EV+Em/iGqZtOvES7si1afRv1ivB zi1bizqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImsnsawYN2LPP1HNcKXVx0z azfrfiH541vsQ4b52VdXRpg/+eyxL3Nq9MasjhSpL8arAA== 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: reject malformed HCI_CMD_SYNC commands In 'mgmt_hci_cmd_sync()', check whether the size of parameters passed in 'struct mgmt_cp_hci_cmd_sync' matches the total size of the data (i.e. 'sizeof(struct mgmt_cp_hci_cmd_sync)' plus trailing bytes). Otherwise, large invalid 'params_len' will cause 'hci_cmd_sync_alloc()' to do 'skb_put_data()' from an area beyond the one actually passed to 'mgmt_hci_cmd_sync()'. The Linux kernel CVE team has assigned CVE-2025-38128 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 827af4787e74e8df9e8e0677a69fbb15e0856d2f and fixed in 6.15.3 with commit 9eeafd16d76a7642d12b3442a26c15cd345e12f7 Issue introduced in 6.13 with commit 827af4787e74e8df9e8e0677a69fbb15e0856d2f and fixed in 6.16-rc1 with commit 03f1700b9b4d4f2fed3165370f3c23db76553178 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-38128 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/9eeafd16d76a7642d12b3442a26c15cd345e12f7 https://git.kernel.org/stable/c/03f1700b9b4d4f2fed3165370f3c23db76553178