{"id":"AZL-118535","summary":"CVE-2026-143302 affecting package kernel 6.6.161.1-1","details":"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","modified":"2026-12-04T14:18:30.766540078Z","published":"2026-12-03T10:18:16Z","upstream":["CVE-2026-143302"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143302"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-118535.json"}}],"schema_version":"1.9.2"}