CVE-2025-68352 spi: ch341: fix out-of-bounds memory access in ch341_transfer_one
A local attacker can trigger out-of-bounds memory access in the CH341 SPI driver, potentially leading to code execution or system crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-68352?
CVE-2025-68352 is a high-severity memory corruption vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-68352?
How do I fix CVE-2025-68352?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-68352 being exploited?
There is no known exploitation of CVE-2025-68352 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-68352, DEBIAN-CVE-2025-68352, GHSA-3cw8-5h35-w527, ROOT-OS-DEBIAN-13-CVE-2025-68352, UBUNTU-CVE-2025-68352.