{"id":"CVE-2025-40345","aliases":["CVE-2025-40345"],"related":[],"kind":"vulnerability","state":"published","title":"usb: storage: sddr55: Reject out-of-bound new_pba","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: storage: sddr55: Reject out-of-bound new_pba\n\nDiscovered by Atuin - Automated Vulnerability Discovery Engine.\n\nnew_pba comes from the status packet returned after each write.\nA bogus device could report values beyond the block count derived\nfrom info->capacity, letting the driver walk off the end of\npba_to_lba[] and corrupt heap memory.\n\nReject PBAs that exceed the computed block count and fail the\ntransfer so we avoid touching out-of-range mapping entries.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: storage: sddr55: Reject out-of-bound new_pba\n\nDiscovered by Atuin - Automated Vulnerability Discovery Engine.\n\nnew_pba comes from the status packet returned after each write.\nA bogus device could report values beyond the block count derived\nfrom info->capacity, letting the driver walk off the end of\npba_to_lba[] and corrupt heap memory.\n\nReject PBAs that exceed the computed block count and fail the\ntransfer so we avoid touching out-of-range mapping entries.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: storage: sddr55: Rechazar new_pba fuera de límites\n\nDescubierta por Atuin - Motor de Descubrimiento Automatizado de Vulnerabilidades.\n\nnew_pba proviene del paquete de estado devuelto después de cada escritura.\nUn dispositivo falso podría reportar valores más allá del recuento de bloques derivado de info -> capacity, permitiendo que el controlador se salga del final de pba_to_lba[] y corrompa la memoria del montón.\n\nRechazar los PBAs que excedan el recuento de bloques calculado y fallar la transferencia para evitar tocar entradas de mapeo fuera de rango.","source":"nvd"}],"published":"2025-12-12T17:53:06.853Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d00a6c04a502cd52425dbf35588732c652b16490","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"26e9b5da3231da7dc357b363883b5b7b51a64092","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"aa64e0e17e3a5991a25e6a46007770c629039869","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"04a8a6393f3f2f471e05eacca33282dd30b01432","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"5ebe8d479aaf4f41ac35e6955332304193c646f6","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b59d4fda7e7d0aff1043a7f742487cb829f5aac1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.119","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.61","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.11","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","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/d00a6c04a502cd52425dbf35588732c652b16490","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/26e9b5da3231da7dc357b363883b5b7b51a64092","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aa64e0e17e3a5991a25e6a46007770c629039869","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/04a8a6393f3f2f471e05eacca33282dd30b01432","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ebe8d479aaf4f41ac35e6955332304193c646f6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b59d4fda7e7d0aff1043a7f742487cb829f5aac1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-253495.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40345","url":"https://www.cve.org/CVERecord?id=CVE-2025-40345","licence":"CVE Terms of Use","modified":"2026-06-02T13:00:22.057Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40345","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40345","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.324Z","epss":{"score":0.0021,"percentile":0.11784,"date":"2026-12-01T12:00:22.000Z"}}