vhost-scsi: Validate T10 PI scatterlist counts
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 |
|
|
6.18.457.1.97.2In the Linux kernel, the following vulnerability has been resolved:
vhost-scsi: Validate T10 PI scatterlist counts
When T10 PI is negotiated, vhost-scsi splits protection bytes from the data iterator before mapping the request scatterlists. A malformed request can claim protection bytes that cover or exceed the full payload length. The former leaves no data bytes to map, while the latter underflows exp_data_len before advancing the iterator. Both cases can let a zero data SGL count reach sg_alloc_table_chained(), which triggers BUG_ON(!nents).
Reject protection lengths that cover or exceed the payload before subtracting prot_bytes and advancing the iterator. Also propagate negative errors from the protection SGL calculation before calling the allocator, matching the data SGL path.
From the CVE record · Linux
The Linux kernel’s vhost-scsi component mishandles scatterlist counts when T10 PI is negotiated. A malformed request claiming protection bytes that cover or exceed the payload can trigger a kernel BUG_ON. The input does not specify the attacker’s access requirements or whether user interaction is needed.
Engineers running Linux kernels with vhost-scsi should check their deployments; affected versions were not specified.