Linux
scsi: bsg: Cap io_uring sense copy to max_response_len
In the Linux kernel, the following vulnerability has been resolved: scsi: bsg: Cap io_uring sense copy to max_response_len Completion copied scmd->sense_len to the user response buffer without honoring max_response_len. After a valid sense, the midlayer sets sense_len to the real length (up to SCSI_SENSE_BUFFERSIZE), so a smaller user buffer was overrun.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7b6d3255e7f8c6df2d21504c47808e3ce84649ac, < 5d326efc334ea21afd8161f6ca53e17de71948a9
- >= 7b6d3255e7f8c6df2d21504c47808e3ce84649ac, < ece06de726737e887dc0225c8283477624f8ae21
Fixed in 5d326efc334ea21afd8161f6ca53e17de71948a9, ece06de726737e887dc0225c8283477624f8ae21
- 7.1
Fixed in 0, 7.2.5, 7.3
Mitigation
Upgrade Linux to 5d326efc334ea21afd8161f6ca53e17de71948a9 or ece06de726737e887dc0225c8283477624f8ae21 or later.
Upgrade Linux to 0 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.