Description
In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: validate event queue descriptor direction vhost_get_vq_desc() returns the number of device readable (output) and device writable (input) iovec segments. A guest can submit an eventq descriptor chain that fills vq->iov with output segments, setting out to ARRAY_SIZE(vq->iov) and in to zero. When the host later queues a vhost-scsi event, vhost_scsi_do_evt_work() uses out as the index of the first input segment. This accesses one element beyond vq->iov and triggers an array-index-out-of-bounds report. With panic_on_warn enabled, the report panics the host. The event queue accepts device writable buffers only. Reject chains that contain output segments or lack an input segment before using out as an index. The input check prevents the out-of-bounds access, while the output check validates the eventq descriptor direction. I found the descriptor direction issue myself, though the patch was written with AI assistance. The out-of-bounds read with an output-only chain was separately reported by Jia Jia.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
a6c9af87363c5e964d981fe0ec4aa73061a0c793 to < 2a716b417e2efc761fe3d3bce846b73a849d0624affecteda6c9af87363c5e964d981fe0ec4aa73061a0c793 to < 1191c7e6589536e4a87d6a20d292f947625da69faffecteda6c9af87363c5e964d981fe0ec4aa73061a0c793 to < 60d68a71b95b86c68b52a6eb2cabd9cf946160a7affecteda6c9af87363c5e964d981fe0ec4aa73061a0c793 to < ae92ca09a20cde6404c231d9790c3db8a5d4b7cbaffecteda6c9af87363c5e964d981fe0ec4aa73061a0c793 to < 1b5fe4af3f29146eec764f5c40175056d69f8bbdaffecteda6c9af87363c5e964d981fe0ec4aa73061a0c793 to < 3d8c5b714c186d08c8fe8c8cfd1f9b89525ab067affected
Linux Linux
Default version status: affected
3.10affected0 to < 3.10unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/2a716b417e2efc761fe3d3bce846b73a849d0624 ↗
- https://git.kernel.org/stable/c/1191c7e6589536e4a87d6a20d292f947625da69f ↗
- https://git.kernel.org/stable/c/60d68a71b95b86c68b52a6eb2cabd9cf946160a7 ↗
- https://git.kernel.org/stable/c/ae92ca09a20cde6404c231d9790c3db8a5d4b7cb ↗
- https://git.kernel.org/stable/c/1b5fe4af3f29146eec764f5c40175056d69f8bbd ↗
- https://git.kernel.org/stable/c/3d8c5b714c186d08c8fe8c8cfd1f9b89525ab067 ↗