scsi: bsg: Cap io_uring sense copy to max_response_len
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's SCSI bsg io_uring completion path copied sense data into a user response buffer without respecting max_response_len. When the buffer was smaller than the valid sense data, the copy overran it. The input does not specify authentication requirements or other attack preconditions.
Engineers running Linux kernels with the SCSI bsg io_uring path should check their systems; affected versions are not specified.