# CVE-2025-68352: spi: ch341: fix out-of-bounds memory access in ch341\_transfer\_one

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-24T10:32:43.366Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< ea1e43966cd03098fcd5f0d72e6c2901d45fa08d; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 81841da1f30f66a850cc8796d99ba330aad9d696; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 545d1287e40a55242f6ab68bcc1ba3b74088b1bc
- Anyone running Linux 6.11

## Description

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

spi: ch341: fix out-of-bounds memory access in ch341\_transfer\_one

Discovered by Atuin - Automated Vulnerability Discovery Engine.

The 'len' variable is calculated as 'min(32, trans-\>len + 1)',
which includes the 1-byte command header.

When copying data from 'trans-\>tx\_buf' to 'ch341-\>tx\_buf + 1', using 'len'
as the length is incorrect because:

1. It causes an out-of-bounds read from 'trans-\>tx\_buf' (which has size
   'trans-\>len', i.e., 'len - 1' in this context).
2. It can cause an out-of-bounds write to 'ch341-\>tx\_buf' if 'len' is
   CH341\_PACKET\_LENGTH (32). Writing 32 bytes to ch341-\>tx\_buf + 1
   overflows the buffer.

Fix this by copying 'len - 1' bytes.

## Affected and fixed versions

- Linux: \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< ea1e43966cd03098fcd5f0d72e6c2901d45fa08d; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 81841da1f30f66a850cc8796d99ba330aad9d696; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 545d1287e40a55242f6ab68bcc1ba3b74088b1bc (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 545d1287e40a55242f6ab68bcc1ba3b74088b1bc 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-68352. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68352.md
Affected: Linux >= 8846739f52afa07e63395c80227dc544f54bd7b1, < cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974; >= 8846739f52afa07e63395c80227dc544f54bd7b1, < ea1e43966cd03098fcd5f0d72e6c2901d45fa08d; >= 8846739f52afa07e63395c80227dc544f54bd7b1, < 81841da1f30f66a850cc8796d99ba330aad9d696; >= 8846739f52afa07e63395c8…
Fixed in: Linux 81841da1f30f66a850cc8796d99ba330aad9d696, Linux 545d1287e40a55242f6ab68bcc1ba3b74088b1bc

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-68352 being exploited?

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

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

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

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

Linux \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< ea1e43966cd03098fcd5f0d72e6c2901d45fa08d; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 81841da1f30f66a850cc8796d99ba330aad9d696; \>= 8846739f52afa07e63395c80227dc544f54bd7b1, \< 545d1287e40a55242f6ab68bcc1ba3b74088b1bc; Linux 6.11.

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

Yes. Fixed in Linux 81841da1f30f66a850cc8796d99ba330aad9d696, Linux 545d1287e40a55242f6ab68bcc1ba3b74088b1bc. Upgrade Linux to 545d1287e40a55242f6ab68bcc1ba3b74088b1bc or later.

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

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/cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974>
- other: <https://git.kernel.org/stable/c/ea1e43966cd03098fcd5f0d72e6c2901d45fa08d>
- other: <https://git.kernel.org/stable/c/81841da1f30f66a850cc8796d99ba330aad9d696>
- other: <https://git.kernel.org/stable/c/545d1287e40a55242f6ab68bcc1ba3b74088b1bc>

## 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-68352>

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