{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143302",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.365Z",
        "datePublished": "2026-12-03T09:21:33.702Z",
        "dateUpdated": "2026-12-03T09:21:33.702Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:21:33.702Z"
            },
            "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": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/vhost/scsi.c"
                    ],
                    "versions": [
                        {
                            "version": "9f977ef7b671f6169eca78bf40f230fe84b7c7e5",
                            "lessThan": "54d08cd013c1777bccb43c1c27a81c51f39b3ef5",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9f977ef7b671f6169eca78bf40f230fe84b7c7e5",
                            "lessThan": "c4e6a85413f76a2152679567c59aef5168ea9d09",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "9f977ef7b671f6169eca78bf40f230fe84b7c7e5",
                            "lessThan": "1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/vhost/scsi.c"
                    ],
                    "versions": [
                        {
                            "version": "3.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.16",
                                    "versionEndExcluding": "7.4-rc2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/54d08cd013c1777bccb43c1c27a81c51f39b3ef5"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c4e6a85413f76a2152679567c59aef5168ea9d09"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1f5bc40e33d8b3e5e3b89047956099b0c19f1d3d"
                }
            ],
            "title": "vhost-scsi: do not count PI bytes in the data length",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}