[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025070329-CVE-2025-38128-5b44@gregkh>
Date: Thu, 3 Jul 2025 10:35:45 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-38128: Bluetooth: MGMT: reject malformed HCI_CMD_SYNC commands
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists