CVE-2026-143302

Not scored yetLast modified Dec 3, 2026

Description

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

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143303In the Linux kernel, the following vulnerability has been resolved: mctp i3c: Fix locking in an error path If netdev_alloc_skb() fails, mcCVE-2026-143304In the Linux kernel, the following vulnerability has been resolved: wifi: nxpwifi: bound the TLV lengths in the 11AX_CFG response nxpwifi_CVE-2026-143305In the Linux kernel, the following vulnerability has been resolved: bpf: Propagate scalar precision through stack arguments Outgoing stackCVE-2026-143306In the Linux kernel, the following vulnerability has been resolved: bpf: Emit timed may_goto for JITed progs only The timed form of may_goCVE-2026-143307In the Linux kernel, the following vulnerability has been resolved: Bluetooth: validate retained LE Set CIG Parameters command length hci_CVE-2026-143308In the Linux kernel, the following vulnerability has been resolved: Bluetooth: validate retained LE Create CIS command length hci_cs_le_crCVE-2026-143309In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Initialize advertising RPA work only once hci_addCVE-2026-143316.1The Subscribe2 WordPress plugin before 10.46 does not properly escape a user-supplied value before reflecting it into a public subscriptionCVE-2026-143310In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: Copy the resolving-list IRK under RCU hci_le_add_CVE-2026-143311In the Linux kernel, the following vulnerability has been resolved: Bluetooth: SMP: Protect LTK encryption with RCU smp_ltk_encrypt() checCVE-2026-143312In the Linux kernel, the following vulnerability has been resolved: Bluetooth: SMP: Protect link keys during LTK derivation sc_generate_ltCVE-2026-143313In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Keep link-key filtering inside RCU hci_find_link_
CVE-2026-143302: Unscored | Vulnix