{"id":"CVE-2026-143302","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:16.140","lastModified":"2026-12-03T10:18:16.140","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost-scsi: do not count PI bytes in the data length\n\nvhost_scsi_handle_vq() moves pi_bytesout or pi_bytesin into the\nprotection sgl and subtracts those bytes from exp_data_len.  The length\npassed to TCM is still exp_data_len + prot_bytes.\n\nprot_bytes comes from virtio_scsi_cmd_req_pi.  With\nVIRTIO_SCSI_F_T10_PI negotiated, vhost reads that header and does not\ncheck that the CDB is a READ or WRITE.  sbc_check_prot() replaces\ndata_length from the CDB only when the protect field is non-zero.\ntarget_cmd_size_check() leaves a write's data_length unchanged when the\nCDB size is smaller, so a command that does not get that replacement\nkeeps a data_length larger than the data sgl.\n\nThe KASAN report is a MODE SELECT whose header had pi_bytesout set.\nThe data sgl held only the parameter list.  spc_emulate_modeselect()\nwalked data_length and read the next physical page.\n\nPass the data sgl length.  Protected READ and WRITE still take their\nlength from the CDB in sbc_check_prot().\n\nKASAN reports:\n\n  BUG: KASAN: use-after-free in spc_emulate_modeselect+0x145/0x380 [target_core_mod]\n  Read of size 1\n\n  spc_emulate_modeselect\n  __target_execute_cmd\n  target_execute_cmd\n  vhost_scsi_write_pending\n  transport_generic_new_cmd\n  __target_submit\n  target_queued_submit_work\n  process_one_work\n  worker_thread\n  kthread\n  ret_from_fork\n  ret_from_fork_asm"}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/vhost/scsi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"9f977ef7b671f6169eca78bf40f230fe84b7c7e5","lessThan":"54d08cd013c1777bccb43c1c27a81c51f39b3ef5","versionType":"git","status":"affected"},{"version":"9f977ef7b671f6169eca78bf40f230fe84b7c7e5","lessThan":"c4e6a85413f76a2152679567c59aef5168ea9d09","versionType":"git","status":"affected"},{"version":"9f977ef7b671f6169eca78bf40f230fe84b7c7e5","lessThan":"1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/vhost/scsi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc2","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/54d08cd013c1777bccb43c1c27a81c51f39b3ef5","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c4e6a85413f76a2152679567c59aef5168ea9d09","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}