CVE-2025-40301

Bluetooth: hci_event: validate skb length for unknown CC opcode

State
Published
Severity
7.6 High
Published
Dec 8, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.6 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • afcb3369f46ed5dc883a7b92f2dd1e264d79d388 to before fea895de78d3bb2f0c09db9f10b18f8121b15759Affected
  • afcb3369f46ed5dc883a7b92f2dd1e264d79d388 to before 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8Affected
  • afcb3369f46ed5dc883a7b92f2dd1e264d79d388 to before cf2c2acec1cf456c3d11c11a7589e886a0f963a9Affected
  • afcb3369f46ed5dc883a7b92f2dd1e264d79d388 to before 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50Affected
  • afcb3369f46ed5dc883a7b92f2dd1e264d79d388 to before 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5Affected
LinuxLinux
  • 6.1Affected
  • before 6.1Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.117 through 6.6.*Not affected
  • 6.12.58 through 6.12.*Not affected
  • 6.17.8 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.