AZL-118535: CVE-2026-143302 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
vhost-scsi: do not count PI bytes in the data length
vhostscsihandlevq() moves pibytesout or pibytesin into the protection sgl and subtracts those bytes from expdatalen. The length passed to TCM is still expdatalen + protbytes.
protbytes comes from virtioscsicmdreqpi. With VIRTIOSCSIFT10PI negotiated, vhost reads that header and does not check that the CDB is a READ or WRITE. sbccheckprot() replaces datalength from the CDB only when the protect field is non-zero. targetcmdsizecheck() leaves a write's datalength unchanged when the CDB size is smaller, so a command that does not get that replacement keeps a datalength larger than the data sgl.
The KASAN report is a MODE SELECT whose header had pibytesout set. The data sgl held only the parameter list. spcemulatemodeselect() walked datalength and read the next physical page.
Pass the data sgl length. Protected READ and WRITE still take their length from the CDB in sbccheckprot().
KASAN reports:
BUG: KASAN: use-after-free in spcemulatemodeselect+0x145/0x380 [targetcoremod] Read of size 1
spcemulatemodeselect targetexecutecmd targetexecutecmd vhostscsiwritepending transportgenericnewcmd targetsubmit targetqueuedsubmitwork processonework workerthread kthread retfromfork retfromforkasm
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue is relevant to vhost-scsi deployments that negotiate the VIRTIO_SCSI_F_T10_PI feature. The vulnerable path involves protection-information handling between vhost-scsi and the kernel target subsystem.
What does an attacker need to do to trigger the flaw?
They need to submit a command through vhost-scsi with protection-information byte counts set in the virtio-scsi request header. The reported trigger was a MODE SELECT command with pi_bytesout set, causing the target code to use a length larger than the actual data scatter-gather list.
What is the observed impact?
KASAN reported a use-after-free read in spc_emulate_modeselect() in target_core_mod. The out-of-bounds length handling can cause the command emulation code to read into the next physical page.