CVE-2025-40301
JSON

7.6high

Bluetooth: hci_event: validate skb length for unknown CC opcode

Severity
7.6high CVSS:3.1 by Linux
Exploit likelihood
0.45% (higher than 31% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom afcb3369f46ed5dc883a7b92f2dd1e264d79d388 before fea895de78d3bb2f0c09db9f10b18f8121b15759, from afcb3369f46ed5dc883a7b92f2dd1e264d79d388 before 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8, from afcb3369f46ed5dc883a7b92f2dd1e264d79d388 before cf2c2acec1cf456c3d11c11a7589e886a0f963a9, from afcb3369f46ed5dc883a7b92f2dd1e264d79d388 before 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50, from afcb3369f46ed5dc883a7b92f2dd1e264d79d388 before 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5, 6.1
Not affected: before 6.1, from 6.1.159 up to 6.1.*, from 6.6.117 up to 6.6.*, from 6.12.58 up to 6.12.*, from 6.17.8 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Bluetooth: hci_event: validar la longitud de skb para un código de operación CC desconocido En hci_cmd_complete_evt(), si el evento de comando completado tiene un código de operación desconocido, asumimos que el primer byte de los datos restantes de skb -> data contiene el estado de retorno. Sin embargo, los datos del parámetro han sido extraídos previamente en hci_event_func(), lo que puede dejar el skb vacío. Si es así, usar skb -> data[0] para el estado de retorno utiliza memoria no inicializada. La solución es verificar skb -> len antes de usar skb -> data.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40301 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-40301 changed 2026-10-14Public domain