{"id":"CVE-2025-68352","state":"PUBLISHED","title":"spi: ch341: fix out-of-bounds memory access in ch341_transfer_one","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: ch341: fix out-of-bounds memory access in ch341_transfer_one\n\nDiscovered by Atuin - Automated Vulnerability Discovery Engine.\n\nThe 'len' variable is calculated as 'min(32, trans->len + 1)',\nwhich includes the 1-byte command header.\n\nWhen copying data from 'trans->tx_buf' to 'ch341->tx_buf + 1', using 'len'\nas the length is incorrect because:\n\n1. It causes an out-of-bounds read from 'trans->tx_buf' (which has size\n   'trans->len', i.e., 'len - 1' in this context).\n2. It can cause an out-of-bounds write to 'ch341->tx_buf' if 'len' is\n   CH341_PACKET_LENGTH (32). Writing 32 bytes to ch341->tx_buf + 1\n   overflows the buffer.\n\nFix this by copying 'len - 1' bytes.","publishedAt":"2025-12-24T10:32:43.366Z","updatedAt":"2026-08-05T12:11:00.772Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"ea1e43966cd03098fcd5f0d72e6c2901d45fa08d","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"81841da1f30f66a850cc8796d99ba330aad9d696","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"545d1287e40a55242f6ab68bcc1ba3b74088b1bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-ch341.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.63","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.13","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.2","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-ch341.c"]}],"references":["https://git.kernel.org/stable/c/cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974","https://git.kernel.org/stable/c/ea1e43966cd03098fcd5f0d72e6c2901d45fa08d","https://git.kernel.org/stable/c/81841da1f30f66a850cc8796d99ba330aad9d696","https://git.kernel.org/stable/c/545d1287e40a55242f6ab68bcc1ba3b74088b1bc"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/68xxx/CVE-2025-68352.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-68352","state":"PUBLISHED","datePublished":"2025-12-24T10:32:43.366Z","dateUpdated":"2026-08-05T12:11:00.772Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-16T14:48:05.300Z"},"containers":{"cna":{"title":"spi: ch341: fix out-of-bounds memory access in ch341_transfer_one","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: ch341: fix out-of-bounds memory access in ch341_transfer_one\n\nDiscovered by Atuin - Automated Vulnerability Discovery Engine.\n\nThe 'len' variable is calculated as 'min(32, trans->len + 1)',\nwhich includes the 1-byte command header.\n\nWhen copying data from 'trans->tx_buf' to 'ch341->tx_buf + 1', using 'len'\nas the length is incorrect because:\n\n1. It causes an out-of-bounds read from 'trans->tx_buf' (which has size\n   'trans->len', i.e., 'len - 1' in this context).\n2. It can cause an out-of-bounds write to 'ch341->tx_buf' if 'len' is\n   CH341_PACKET_LENGTH (32). Writing 32 bytes to ch341->tx_buf + 1\n   overflows the buffer.\n\nFix this by copying 'len - 1' bytes."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"ea1e43966cd03098fcd5f0d72e6c2901d45fa08d","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"81841da1f30f66a850cc8796d99ba330aad9d696","versionType":"git"},{"version":"8846739f52afa07e63395c80227dc544f54bd7b1","status":"affected","lessThan":"545d1287e40a55242f6ab68bcc1ba3b74088b1bc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-ch341.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.63","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.13","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18.2","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-ch341.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974"},{"url":"https://git.kernel.org/stable/c/ea1e43966cd03098fcd5f0d72e6c2901d45fa08d"},{"url":"https://git.kernel.org/stable/c/81841da1f30f66a850cc8796d99ba330aad9d696"},{"url":"https://git.kernel.org/stable/c/545d1287e40a55242f6ab68bcc1ba3b74088b1bc"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable function is reached through local write or SPI_IOC_MESSAGE operations on a provisioned spidev device. A malicious USB peripheral alone cannot trigger the faulty copy.\nAC:L - A transfer of at least 32 attacker-controlled bytes deterministically produces the one-byte overflow without a race. The attacker controls the overflowing byte and can repeat requests or perform heap grooming.\nPR:L - Binding spidev normally requires administrator provisioning, but the transfer path has no capability check. Once device-node access is granted, an ordinary unprivileged local user can trigger the bug.\nUI:N - The attacker directly opens the device and submits the transfer; no action by another user is required.\nS:U - The vulnerable SPI driver and the affected kernel memory share the same kernel security authority. This is a conventional local kernel privilege-escalation condition rather than a VM or IOMMU boundary escape.\nC:H - The out-of-bounds access can corrupt an adjacent slab object, potentially enabling control-flow hijacking and arbitrary kernel-memory disclosure. Under the required higher-severity treatment of exploitable memory corruption, confidentiality impact is high.\nI:H - For transfers of at least 32 bytes, the attacker controls the byte written beyond ch341->tx_buf. Corruption of adjacent allocator metadata or kernel objects can plausibly yield arbitrary writes or kernel code execution.\nA:H - The adjacent-object corruption can damage allocator metadata or devres list pointers, causing a kernel oops or panic. The triggering transfer can be submitted repeatedly."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:11:00.772Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.17.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}