PT-2026-167160
CVE-2026-143302
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
vhost-scsi: do not count PI bytes in the data length
vhost scsi handle vq() moves pi bytesout or pi bytesin into the
protection sgl and subtracts those bytes from exp data len. The length
passed to TCM is still exp data len + prot bytes.
prot bytes comes from virtio scsi cmd req pi. With
VIRTIO SCSI F T10 PI negotiated, vhost reads that header and does not
check that the CDB is a READ or WRITE. sbc check prot() replaces
data length from the CDB only when the protect field is non-zero.
target cmd size check() leaves a write's data length unchanged when the
CDB size is smaller, so a command that does not get that replacement
keeps a data length larger than the data sgl.
The KASAN report is a MODE SELECT whose header had pi bytesout set.
The data sgl held only the parameter list. spc emulate modeselect()
walked data length and read the next physical page.
Pass the data sgl length. Protected READ and WRITE still take their
length from the CDB in sbc check prot().
KASAN reports:
BUG: KASAN: use-after-free in spc emulate modeselect+0x145/0x380 [target core mod]
Read of size 1
spc emulate modeselect
target execute cmd
target execute cmd
vhost scsi write pending
transport generic new cmd
target submit
target queued submit work
process one work
worker thread
kthread
ret from fork
ret from fork asm
Found an issue in the description? Have something to add? Feel free to write us 👾