CVE-2025-40301

Source
https://cve.org/CVERecord?id=CVE-2025-40301
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40301.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40301
Downstream
Related
Published
2025-12-08T00:46:24.863Z
Modified
2026-03-20T12:43:15.681181Z
Summary
Bluetooth: hci_event: validate skb length for unknown CC opcode
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_event: validate skb length for unknown CC opcode

In hcicmdcompleteevt(), 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 hcievent_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40301.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
afcb3369f46ed5dc883a7b92f2dd1e264d79d388
Fixed
fea895de78d3bb2f0c09db9f10b18f8121b15759
Fixed
779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8
Fixed
cf2c2acec1cf456c3d11c11a7589e886a0f963a9
Fixed
1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50
Fixed
5c5f1f64681cc889d9b13e4a61285e9e029d6ab5

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40301.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.117
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.58
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40301.json"