{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9f977ef7b671f6169eca78bf40f230fe84b7c7e5"
            },
            {
              "fixed": "54d08cd013c1777bccb43c1c27a81c51f39b3ef5"
            },
            {
              "fixed": "c4e6a85413f76a2152679567c59aef5168ea9d09"
            },
            {
              "fixed": "1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.16.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143302.json"
  },
  "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",
  "id": "CVE-2026-143302",
  "modified": "2026-12-03T10:45:24.729868150Z",
  "published": "2026-12-03T09:21:33.702Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/54d08cd013c1777bccb43c1c27a81c51f39b3ef5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c4e6a85413f76a2152679567c59aef5168ea9d09"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143302.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143302"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "vhost-scsi: do not count PI bytes in the data length"
}