CVE-2026-143302: vhost-scsi: do not count PI bytes in the data length

Published Dec 3, 2026
·
Updated

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

3 affected componentsFixes available
Linux Linux kernel
linux/kernel>=3.16.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description
Data Sourced
via OSV·09:21 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which deployments are exposed?

The issue applies to Linux kernel deployments using vhost-scsi where the VIRTIO_SCSI_F_T10_PI feature is negotiated. The reported trigger involves a MODE SELECT command with pi_bytesout set.

2

What does an attacker need to do to trigger the flaw?

They need to submit a virtio SCSI request with T10 PI negotiated and PI byte counts set in a way that leaves the command data length larger than the actual data scatter-gather list. The vulnerable path does not verify that the CDB is a READ or WRITE before processing the PI header.

3

How might existing exploitation attempts appear?

KASAN can report a use-after-free read in spc_emulate_modeselect within target_core_mod. The example report is a byte-sized read while MODE SELECT processing walks beyond the parameter-list data into the next physical page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203