Skip to contentSkip to conversation

CVE-2025-38128: Bluetooth: MGMT: reject malformed HCI_CMD_SYNC commands

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 3, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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