CVE-2025-68288
usb: storage: Fix memory leak in USB bulk transport
Description
In the Linux kernel, the following vulnerability has been resolved: usb: storage: Fix memory leak in USB bulk transport A kernel memory leak was identified by the 'ioctl_sg01' test from Linux Test Project (LTP). The following bytes were mainly observed: 0x53425355. When USB storage devices incorrectly skip the data phase with status data, the code extracts/validates the CSW from the sg buffer, but fails to clear it afterwards. This leaves status protocol data in srb's transfer buffer, such as the US_BULK_CS_SIGN 'USBS' signature observed here. Thus, this can lead to USB protocols leaks to user space through SCSI generic (/dev/sg*) interfaces, such as the one seen here when the LTP test requested 512 KiB. Fix the leak by zeroing the CSW data in srb's transfer buffer immediately after the validation of devices that skip data phase. Note: Differently from CVE-2018-1000204, which fixed a big leak by zero- ing pages at allocation time, this leak occurs after allocation, when USB protocol data is written to already-allocated sg pages.
INFO
Published Date :
Dec. 16, 2025, 4:16 p.m.
Last Modified :
Oct. 13, 2026, 7:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the kernel patch that resolves the USB storage memory leak.
- Ensure USB storage devices correctly handle data phase and status data.
- Validate CSW data extraction and clearing in the SCSI generic interface.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68288.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68288 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68288
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68288 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68288 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 13, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: usb: almacenamiento: Corrección de fuga de memoria en el transporte masivo USB Una 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. Cuando 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. Se 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. Nota: 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. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '83f0241959831586d9b6d47f6bd5d3dec8f43bf0', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '4ba515dfff7eeca369ab85cdbb3f3b231c71720c', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '467fec3cefbeb9e3ea80f457da9a5666a71ca0d0', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': 'cb1401b5bcc2feb5b038fc4b512e5968b016e05e', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '0f18eac44c5668204bf6eebb01ddb369ac56932b', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '5b815ddb3f5560fac35b16de3a2a22d5f81c5993', 'versionType': 'git'}, {'status': 'affected', 'version': 'a45b599ad808c3c982fdcdc12b0b8611c2f92824', 'lessThan': '41e99fe2005182139b1058db71f0d241f8f0078c', 'versionType': 'git'}, {'status': 'affected', 'version': '582802e7c617cfb07cc15f280c128e6decbc57b8', 'versionType': 'git'}, {'status': 'affected', 'version': '58b7ce6f9ef2367f86384b20458642945993b816', 'versionType': 'git'}, {'status': 'affected', 'version': '93314640426ddb6af618d0802e622f6fa771792c', 'versionType': 'git'}, {'status': 'affected', 'version': 'ad2518320bc440ed3db072e2444a1bb226a9cf7a', 'versionType': 'git'}, {'status': 'affected', 'version': 'd827bea2d18c07ba514f7d48cde49f90da9a1384', 'versionType': 'git'}, {'status': 'affected', 'version': '39169410574503c6e901de1aa6eac5108475e017', 'versionType': 'git'}, {'status': 'affected', 'version': '3.16.58', 'lessThan': '3.17', 'versionType': 'semver'}, {'status': 'affected', 'version': '3.18.110', 'lessThan': '3.19', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.4.133', 'lessThan': '4.5', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.9.103', 'lessThan': '4.10', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.14.44', 'lessThan': '4.15', 'versionType': 'semver'}, {'status': 'affected', 'version': '4.16.12', 'lessThan': '4.17', 'versionType': 'semver'}], 'programFiles': ['drivers/usb/storage/transport.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.247', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.197', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.159', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.119', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.61', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.11', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/usb/storage/transport.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 16, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: usb: storage: Fix memory leak in USB bulk transport A kernel memory leak was identified by the 'ioctl_sg01' test from Linux Test Project (LTP). The following bytes were mainly observed: 0x53425355. When USB storage devices incorrectly skip the data phase with status data, the code extracts/validates the CSW from the sg buffer, but fails to clear it afterwards. This leaves status protocol data in srb's transfer buffer, such as the US_BULK_CS_SIGN 'USBS' signature observed here. Thus, this can lead to USB protocols leaks to user space through SCSI generic (/dev/sg*) interfaces, such as the one seen here when the LTP test requested 512 KiB. Fix the leak by zeroing the CSW data in srb's transfer buffer immediately after the validation of devices that skip data phase. Note: Differently from CVE-2018-1000204, which fixed a big leak by zero- ing pages at allocation time, this leak occurs after allocation, when USB protocol data is written to already-allocated sg pages. Added Reference https://git.kernel.org/stable/c/0f18eac44c5668204bf6eebb01ddb369ac56932b Added Reference https://git.kernel.org/stable/c/41e99fe2005182139b1058db71f0d241f8f0078c Added Reference https://git.kernel.org/stable/c/467fec3cefbeb9e3ea80f457da9a5666a71ca0d0 Added Reference https://git.kernel.org/stable/c/4ba515dfff7eeca369ab85cdbb3f3b231c71720c Added Reference https://git.kernel.org/stable/c/5b815ddb3f5560fac35b16de3a2a22d5f81c5993 Added Reference https://git.kernel.org/stable/c/83f0241959831586d9b6d47f6bd5d3dec8f43bf0 Added Reference https://git.kernel.org/stable/c/cb1401b5bcc2feb5b038fc4b512e5968b016e05e