# CVE-2025-40301: Bluetooth: hci\_event: validate skb length for unknown CC opcode

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.6
- **CVSS:** 7.6 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-26)
- **Published:** 2025-12-08T00:46:24.863Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< fea895de78d3bb2f0c09db9f10b18f8121b15759; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< cf2c2acec1cf456c3d11c11a7589e886a0f963a9; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5
- Anyone running Linux 6.1

## 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 and fixed versions

- Linux: \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< fea895de78d3bb2f0c09db9f10b18f8121b15759; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< cf2c2acec1cf456c3d11c11a7589e886a0f963a9; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40301. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40301.md
Affected: Linux >= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, < fea895de78d3bb2f0c09db9f10b18f8121b15759; >= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, < 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8; >= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, < cf2c2acec1cf456c3d11c11a7589e886a0f963a9; >= afcb3369f46ed5dc883a7b9…
Fixed in: Linux 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8, Linux 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50, Linux 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40301 being exploited?

There is no confirmed exploitation: CVE-2025-40301 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40301?

High: CVSS 7.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40301?

Linux \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< fea895de78d3bb2f0c09db9f10b18f8121b15759; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< cf2c2acec1cf456c3d11c11a7589e886a0f963a9; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50; \>= afcb3369f46ed5dc883a7b92f2dd1e264d79d388, \< 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5; Linux 6.1.

### Is there a fix for CVE-2025-40301?

Yes. Fixed in Linux 779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8, Linux 1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50, Linux 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5. Upgrade Linux to 5c5f1f64681cc889d9b13e4a61285e9e029d6ab5 or later.

### How do I check if I'm affected by CVE-2025-40301?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/fea895de78d3bb2f0c09db9f10b18f8121b15759>
- other: <https://git.kernel.org/stable/c/779f83a91d4f1bf5ddfeaf528420cbb6dbf03fa8>
- other: <https://git.kernel.org/stable/c/cf2c2acec1cf456c3d11c11a7589e886a0f963a9>
- other: <https://git.kernel.org/stable/c/1a0ddaaf97405dbd11d4cb5a961a3f82400e8a50>
- other: <https://git.kernel.org/stable/c/5c5f1f64681cc889d9b13e4a61285e9e029d6ab5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40301>

HTML: <https://flawdb.com/CVE-2025-40301> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40301>
