CVE-2025-68352

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

State
Published
Severity
7.8 High
Published
Dec 24, 2025
Updated
Aug 5, 2026
Reserved
Dec 16, 2025

Read the record on cve.org

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.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 8846739f52afa07e63395c80227dc544f54bd7b1 to before cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974Affected
  • 8846739f52afa07e63395c80227dc544f54bd7b1 to before ea1e43966cd03098fcd5f0d72e6c2901d45fa08dAffected
  • 8846739f52afa07e63395c80227dc544f54bd7b1 to before 81841da1f30f66a850cc8796d99ba330aad9d696Affected
  • 8846739f52afa07e63395c80227dc544f54bd7b1 to before 545d1287e40a55242f6ab68bcc1ba3b74088b1bcAffected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.63 through 6.12.*Not affected
  • 6.17.13 through 6.17.*Not affected
  • 6.18.2 through 6.18.*Not affected
  • 6.19 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.