CVE-2025-68352

Source
https://cve.org/CVERecord?id=CVE-2025-68352
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-68352.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-68352
Downstream
Related
Published
2025-12-24T10:32:43.366Z
Modified
2026-03-12T04:31:48.723407Z
Summary
spi: ch341: fix out-of-bounds memory access in ch341_transfer_one
Details

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

spi: ch341: fix out-of-bounds memory access in ch341transferone

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->txbuf' to 'ch341->txbuf + 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->txbuf' if 'len' is CH341PACKETLENGTH (32). Writing 32 bytes to ch341->txbuf + 1 overflows the buffer.

Fix this by copying 'len - 1' bytes.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/68xxx/CVE-2025-68352.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
8846739f52afa07e63395c80227dc544f54bd7b1
Fixed
cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974
Fixed
ea1e43966cd03098fcd5f0d72e6c2901d45fa08d
Fixed
81841da1f30f66a850cc8796d99ba330aad9d696
Fixed
545d1287e40a55242f6ab68bcc1ba3b74088b1bc

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.11.0
Fixed
6.12.63
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.13
Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.2

Database specific

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