{"id":"CVE-2025-68288","aliases":["CVE-2025-68288"],"related":[],"kind":"vulnerability","state":"published","title":"usb: storage: Fix memory leak in USB bulk transport","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: storage: Fix memory leak in USB bulk transport\n\nA kernel memory leak was identified by the 'ioctl_sg01' test from Linux\nTest Project (LTP). The following bytes were mainly observed: 0x53425355.\n\nWhen USB storage devices incorrectly skip the data phase with status data,\nthe code extracts/validates the CSW from the sg buffer, but fails to clear\nit afterwards. This leaves status protocol data in srb's transfer buffer,\nsuch as the US_BULK_CS_SIGN 'USBS' signature observed here. Thus, this can\nlead to USB protocols leaks to user space through SCSI generic (/dev/sg*)\ninterfaces, such as the one seen here when the LTP test requested 512 KiB.\n\nFix the leak by zeroing the CSW data in srb's transfer buffer immediately\nafter the validation of devices that skip data phase.\n\nNote: Differently from CVE-2018-1000204, which fixed a big leak by zero-\ning pages at allocation time, this leak occurs after allocation, when USB\nprotocol data is written to already-allocated sg pages.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: storage: Fix memory leak in USB bulk transport\n\nA kernel memory leak was identified by the 'ioctl_sg01' test from Linux\nTest Project (LTP). The following bytes were mainly observed: 0x53425355.\n\nWhen USB storage devices incorrectly skip the data phase with status data,\nthe code extracts/validates the CSW from the sg buffer, but fails to clear\nit afterwards. This leaves status protocol data in srb's transfer buffer,\nsuch as the US_BULK_CS_SIGN 'USBS' signature observed here. Thus, this can\nlead to USB protocols leaks to user space through SCSI generic (/dev/sg*)\ninterfaces, such as the one seen here when the LTP test requested 512 KiB.\n\nFix the leak by zeroing the CSW data in srb's transfer buffer immediately\nafter the validation of devices that skip data phase.\n\nNote: Differently from CVE-2018-1000204, which fixed a big leak by zero-\ning pages at allocation time, this leak occurs after allocation, when USB\nprotocol data is written to already-allocated sg pages.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: almacenamiento: Corrección de fuga de memoria en el transporte masivo USB\n\nUna fuga de memoria del kernel fue identificada por la prueba 'ioctl_sg01' del Proyecto de Pruebas de Linux (LTP). Los siguientes bytes fueron observados principalmente: 0x53425355.\n\nCuando los dispositivos de almacenamiento USB omiten incorrectamente la fase de datos con datos de estado, el código extrae/valida el CSW del búfer sg, pero no lo borra después. Esto deja datos de protocolo de estado en el búfer de transferencia de srb, como la firma US_BULK_CS_SIGN 'USBS' observada aquí. Así, esto puede llevar a fugas de protocolos USB al espacio de usuario a través de interfaces SCSI genéricas (/dev/sg), como la vista aquí cuando la prueba LTP solicitó 512 KiB.\n\nSe corrige la fuga poniendo a cero los datos CSW en el búfer de transferencia de srb inmediatamente después de la validación de los dispositivos que omiten la fase de datos.\n\nNota: A diferencia de CVE-2018-1000204, que corrigió una gran fuga poniendo a cero páginas en el momento de la asignación, esta fuga ocurre después de la asignación, cuando los datos del protocolo USB son escritos en páginas sg ya asignadas.","source":"nvd"}],"published":"2025-12-16T15:06:09.654Z","modified":"2026-10-13T19:10:00.193Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"83f0241959831586d9b6d47f6bd5d3dec8f43bf0","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"4ba515dfff7eeca369ab85cdbb3f3b231c71720c","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"467fec3cefbeb9e3ea80f457da9a5666a71ca0d0","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"cb1401b5bcc2feb5b038fc4b512e5968b016e05e","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"0f18eac44c5668204bf6eebb01ddb369ac56932b","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"5b815ddb3f5560fac35b16de3a2a22d5f81c5993","status":"affected"},{"type":"git","introduced":"a45b599ad808c3c982fdcdc12b0b8611c2f92824","fixed":"41e99fe2005182139b1058db71f0d241f8f0078c","status":"affected"},{"type":"git","version":"582802e7c617cfb07cc15f280c128e6decbc57b8","status":"affected"},{"type":"git","version":"58b7ce6f9ef2367f86384b20458642945993b816","status":"affected"},{"type":"git","version":"93314640426ddb6af618d0802e622f6fa771792c","status":"affected"},{"type":"git","version":"ad2518320bc440ed3db072e2444a1bb226a9cf7a","status":"affected"},{"type":"git","version":"d827bea2d18c07ba514f7d48cde49f90da9a1384","status":"affected"},{"type":"git","version":"39169410574503c6e901de1aa6eac5108475e017","status":"affected"},{"type":"semver","introduced":"3.16.58","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"3.18.110","fixed":"3.19","status":"affected"},{"type":"semver","introduced":"4.4.133","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.103","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.44","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.16.12","fixed":"4.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","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/83f0241959831586d9b6d47f6bd5d3dec8f43bf0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ba515dfff7eeca369ab85cdbb3f3b231c71720c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/467fec3cefbeb9e3ea80f457da9a5666a71ca0d0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb1401b5bcc2feb5b038fc4b512e5968b016e05e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f18eac44c5668204bf6eebb01ddb369ac56932b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b815ddb3f5560fac35b16de3a2a22d5f81c5993","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41e99fe2005182139b1058db71f0d241f8f0078c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68288","url":"https://www.cve.org/CVERecord?id=CVE-2025-68288","licence":"CVE Terms of Use","modified":"2026-05-23T16:02:31.659Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68288","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68288","licence":"Public domain","modified":"2026-10-13T19:10:00.193Z"}],"updatedAt":"2026-11-25T22:59:09.527Z","epss":{"score":0.00222,"percentile":0.13587,"date":"2026-12-01T12:00:22.000Z"}}