{"id":"CVE-2025-68352","aliases":["CVE-2025-68352"],"related":[],"kind":"vulnerability","state":"published","title":"spi: ch341: fix out-of-bounds memory access in ch341_transfer_one","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha corregido la siguiente vulnerabilidad:\\n\\nspi: ch341: fix out-of-bounds memory access in ch341_transfer_one\\n\\nDescubierta por Atuin - Automated Vulnerability Discovery Engine.\\n\\nLa variable 'len' se calcula como 'min(32, trans -> len + 1)', lo que incluye el encabezado de comando de 1?byte.\\n\\nAl copiar datos de 'trans -> tx_buf' a 'ch341 -> tx_buf + 1', usar 'len' como longitud es incorrecto porque:\\n\\n1. Provoca una lectura fuera de los límites de 'trans -> tx_buf' (que tiene tamaño 'trans -> len', es decir, 'len - 1' en este contexto).\\n2. Puede provocar una escritura fuera de los límites de 'ch341 -> tx_buf' si 'len' es CH341_PACKET_LENGTH (32). Escribir 32?bytes en ch341 -> tx_buf + 1 desborda el búfer.\\n\\nCorrija esto copiando 'len - 1' bytes.","source":"nvd"}],"published":"2025-12-24T10:32:43.366Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8846739f52afa07e63395c80227dc544f54bd7b1","fixed":"cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974","status":"affected"},{"type":"git","introduced":"8846739f52afa07e63395c80227dc544f54bd7b1","fixed":"ea1e43966cd03098fcd5f0d72e6c2901d45fa08d","status":"affected"},{"type":"git","introduced":"8846739f52afa07e63395c80227dc544f54bd7b1","fixed":"81841da1f30f66a850cc8796d99ba330aad9d696","status":"affected"},{"type":"git","introduced":"8846739f52afa07e63395c80227dc544f54bd7b1","fixed":"545d1287e40a55242f6ab68bcc1ba3b74088b1bc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.63","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.13","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.2","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cad6c0fd6f3c0e76a1f75df4bce3b08a13f08974","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ea1e43966cd03098fcd5f0d72e6c2901d45fa08d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81841da1f30f66a850cc8796d99ba330aad9d696","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/545d1287e40a55242f6ab68bcc1ba3b74088b1bc","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68352","url":"https://www.cve.org/CVERecord?id=CVE-2025-68352","licence":"CVE Terms of Use","modified":"2026-08-05T12:11:00.772Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68352","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68352","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:09.864Z","epss":{"score":0.00164,"percentile":0.05867,"date":"2026-12-02T12:00:21.000Z"}}