In the Linux kernel, the following vulnerability has been resolved:
vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint
If vhost_scsi_set_endpoint is called multiple times without a vhost_scsi_clear_endpoint between them, we can hit multiple bugs found by Haoran Zhang:
1. Use-after-free when no tpgs are found:
This fixes a use after free that occurs when vhost_scsi_set_endpoint is called more than once and calls after the first call do not find any tpgs to add to the vs_tpg. When vhost_scsi_set_endpoint first finds tpgs to add to the vs_tpg array match=true, so we will do:
vhost_vq_set_backend(vq, vs_tpg); ...
kfree(vs->vs_tpg); vs->vs_tpg = vs_tpg;
If vhost_scsi_set_endpoint is called again and no tpgs are found match=false so we skip the vhost_vq_set_backend call leaving the pointer to the vs_tpg we then free via:
kfree(vs->vs_tpg); vs->vs_tpg = vs_tpg;
If a scsi request is then sent we do:
vhost_scsi_handle_vq -> vhost_scsi_get_req -> vhost_vq_get_backend
which sees the vs_tpg we just did a kfree on.
2. Tpg dir removal hang:
This patch fixes an issue where we cannot remove a LIO/target layer tpg (and structs above it like the target) dir due to the refcount dropping to -1.
The problem is that if vhost_scsi_set_endpoint detects a tpg is already in the vs->vs_tpg array or if the tpg has been removed so target_depend_item fails, the undepend goto handler will do target_undepend_item on all tpgs in the vs_tpg array dropping their refcount to 0. At this time vs_tpg contains both the tpgs we have added in the current vhost_scsi_set_endpoint call as well as tpgs we added in previous calls which are also in vs->vs_tpg.
Later, when vhost_scsi_clear_endpoint runs it will do target_undepend_item on all the tpgs in the vs->vs_tpg which will drop their refcount to -1. Userspace will then not be able to remove the tpg and will hang when it tries to do rmdir on the tpg dir.
3. Tpg leak:
This fixes a bug where we can leak tpgs and cause them to be un-removable because the target name is overwritten when vhost_scsi_set_endpoint is called multiple times but with different target names.
The bug occurs if a user has called VHOST_SCSI_SET_ENDPOINT and setup a vhost-scsi device to target/tpg mapping, then calls VHOST_SCSI_SET_ENDPOINT again with a new target name that has tpgs we haven't seen before (target1 has tpg1 but target2 has tpg2). When this happens we don't teardown the old target tpg mapping and just overwrite the target name and the vs->vs_tpg array. Later when we do vhost_scsi_clear_endpoint, we are passed in either target1 or target2's name and we will only match that target's tpgs when we loop over the vs->vs_tpg. We will then return from the function without doing target_undepend_item on the tpgs.
Because of all these bugs, it looks like being able to call vhost_scsi_set_endpoint multiple times was never supported. The major user, QEMU, already has checks to prevent this use case. So to fix the issues, this patch prevents vhost_scsi_set_endpoint from being called if it's already successfully added tpgs. To add, remove or change the tpg config or target name, you must do a vhost_scsi_clear_endpoint first.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linuxUpgrade linux-6.1 | May 15, 2025 | Apr 16, 2025 |
| Huawei Euleros 2_0_sp11 | — | Upgrade kernel-tools-libsUpgrade kernel-toolsUpgrade bpftoolUpgrade kernel-abi-stablelistsUpgrade kernelUpgrade python3-perf | Mar 17, 2026 | Mar 17, 2026 |
| Huawei Euleros 2_0_sp12 | — | Upgrade kernel-toolsUpgrade kernelUpgrade kernel-abi-stablelistsUpgrade python3-perfUpgrade bpftoolUpgrade kernel-tools-libs | Jan 15, 2026 | Jan 13, 2026 |
| Suse | — | Upgrade gfs2-kmp-64kbUpgrade kernel-azure-develUpgrade kselftests-kmp-azureUpgrade ocfs2-kmp-defaultUpgrade dtb-appleUpgrade dtb-lgUpgrade kernel-debugUpgrade kernel-develUpgrade gfs2-kmp-defaultUpgrade kernel-default-develUpgrade reiserfs-kmp-64kbUpgrade kernel-source-rtUpgrade kernel-devel-azureUpgrade kernel-rtUpgrade kernel-kvmsmallUpgrade kernel-azureUpgrade gfs2-kmp-rtUpgrade kernel-64kbUpgrade kernel-rt_debug-develUpgrade kernel-debug-vdsoUpgrade kernel-syms-azureUpgrade dtb-exynosUpgrade kernel-debug-develUpgrade dtb-alteraUpgrade kernel-source-vanillaUpgrade dtb-caviumUpgrade kernel-symsUpgrade dtb-allwinnerUpgrade gfs2-kmp-azureUpgrade dtb-hisiliconUpgrade dtb-amazonUpgrade kernel-azure-extraUpgrade kernel-kvmsmall-vdsoUpgrade cluster-md-kmp-rtUpgrade kernel-source-azureUpgrade ocfs2-kmp-azureUpgrade kernel-kvmsmall-develUpgrade ocfs2-kmp-64kbUpgrade kernel-sourceUpgrade kernel-64kb-optionalUpgrade kselftests-kmp-64kbUpgrade kernel-default-vdsoUpgrade cluster-md-kmp-azureUpgrade kernel-default-optionalUpgrade dtb-broadcomUpgrade kernel-rt-optionalUpgrade dtb-marvellUpgrade dtb-qcomUpgrade kernel-default-livepatchUpgrade dlm-kmp-64kbUpgrade dtb-freescaleUpgrade kernel-zfcpdumpUpgrade kernel-azure-optionalUpgrade kernel-docs-htmlUpgrade kernel-rt-vdsoUpgrade ocfs2-kmp-rtUpgrade dtb-socionextUpgrade kernel-macrosUpgrade kselftests-kmp-defaultUpgrade kernel-obs-qaUpgrade cluster-md-kmp-defaultUpgrade reiserfs-kmp-azureUpgrade dtb-xilinxUpgrade dtb-renesasUpgrade dtb-armUpgrade kernel-default-livepatch-develUpgrade cluster-md-kmp-64kbUpgrade reiserfs-kmp-rtUpgrade kernel-obs-buildUpgrade dtb-mediatekUpgrade kernel-docsUpgrade kselftests-kmp-rtUpgrade dtb-amdUpgrade kernel-64kb-develUpgrade dtb-sprdUpgrade dtb-rockchipUpgrade dtb-amlogicUpgrade kernel-rt-develUpgrade kernel-default-baseUpgrade dlm-kmp-rtUpgrade kernel-rt-livepatch-develUpgrade kernel-defaultUpgrade dtb-apmUpgrade kernel-default-base-rebuildUpgrade dlm-kmp-azureUpgrade kernel-devel-rtUpgrade kernel-default-extraUpgrade kernel-rt-extraUpgrade kernel-syms-rtUpgrade reiserfs-kmp-defaultUpgrade kernel-rt_debug-vdsoUpgrade kernel-rt_debugUpgrade dlm-kmp-defaultUpgrade kernel-64kb-extraUpgrade kernel-azure-vdsoUpgrade dtb-nvidia | Dec 5, 2025 | Jul 8, 2025 |
| Ubuntu | — | Upgrade linux-image-nvidiaUpgrade linux-image-oracle-64kUpgrade linux-image-azure-fde-edgeUpgrade linux-image-genericUpgrade linux-image-generic-64kUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-6.8.1-1036-realtimeUpgrade linux-image-6.8.0-1041-nvidia-lowlatency-64kUpgrade linux-image-6.11.0-1018-azureUpgrade linux-image-oracle-64k-6.8Upgrade linux-image-gkeop-6.8Upgrade linux-image-6.14.0-1008-gcp-64kUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-6.11.0-1011-realtimeUpgrade linux-image-6.8.0-1044-azure-fipsUpgrade linux-image-6.14.0-22-generic-64kUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-ibm-classicUpgrade linux-image-generic-lpaeUpgrade linux-image-gke-6.8Upgrade linux-image-virtual-hwe-22.04Upgrade linux-image-azure-6.8Upgrade linux-image-raspi-6.8Upgrade linux-image-6.8.0-1041-raspiUpgrade linux-image-6.11.0-1016-gcp-64kUpgrade linux-image-6.14.0-1007-aws-64kUpgrade linux-image-azure-nvidia-6.8Upgrade linux-image-6.8.0-2032-raspi-realtimeUpgrade linux-image-ibmUpgrade linux-image-azure-6.11Upgrade linux-image-6.14.0-1008-gcpUpgrade linux-image-aws-6.8Upgrade linux-image-6.11.0-1015-awsUpgrade linux-image-6.11.0-28-genericUpgrade linux-image-gkeopUpgrade linux-image-gkeUpgrade linux-image-gcpUpgrade linux-image-aws-64kUpgrade linux-image-6.8.0-1041-aws-64kUpgrade linux-image-oem-22.04Upgrade linux-image-6.8.0-1029-azure-nvidiaUpgrade linux-image-nvidia-lowlatency-6.8Upgrade linux-image-virtual-6.8Upgrade linux-image-azureUpgrade linux-image-azure-lts-24.04Upgrade linux-image-lowlatencyUpgrade linux-image-oem-22.04aUpgrade linux-image-realtime-hwe-22.04Upgrade linux-image-raspiUpgrade linux-image-6.11.0-1016-gcpUpgrade linux-image-6.8.0-1038-gkeUpgrade linux-image-raspi-realtime-6.8Upgrade linux-image-lowlatency-hwe-24.04Upgrade linux-image-6.8.0-1041-nvidia-lowlatencyUpgrade linux-image-6.8.0-1041-awsUpgrade linux-image-oem-22.04cUpgrade linux-image-6.8.0-86-lowlatencyUpgrade linux-image-gke-64k-6.8Upgrade linux-image-6.11.0-1018-azure-fdeUpgrade linux-image-6.14.0-1007-azure-fdeUpgrade linux-image-nvidia-6.8Upgrade linux-image-azure-nvidia-lts-24.04Upgrade linux-image-lowlatency-64kUpgrade linux-image-6.11.0-1024-oemUpgrade linux-image-nvidia-64kUpgrade linux-image-6.8.0-1041-azureUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-raspi-realtimeUpgrade linux-image-realtime-6.8.1Upgrade linux-image-gcp-64kUpgrade linux-image-azure-fips-6.8Upgrade linux-image-nvidia-64k-6.8Upgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-generic-6.8Upgrade linux-image-6.8.0-1041-nvidia-64kUpgrade linux-image-azure-fdeUpgrade linux-image-6.14.0-1007-awsUpgrade linux-image-6.11.0-1014-raspiUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-6.8.0-1038-oracleUpgrade linux-image-gke-64kUpgrade linux-image-6.8.0-1038-gke-64kUpgrade linux-image-awsUpgrade linux-image-6.8.0-86-lowlatency-64kUpgrade linux-image-oracleUpgrade linux-image-oem-22.04bUpgrade linux-image-lowlatency-6.11Upgrade linux-image-oracle-6.8Upgrade linux-image-6.14.0-1007-raspiUpgrade linux-image-aws-64k-6.8Upgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-generic-hwe-24.04Upgrade linux-image-oem-24.04bUpgrade linux-image-6.14.0-22-genericUpgrade linux-image-6.8.0-1042-gcp-64kUpgrade linux-image-6.8.0-1039-ibmUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-generic-hwe-22.04Upgrade linux-image-nvidia-lowlatencyUpgrade linux-image-gcp-6.8Upgrade linux-image-6.8.0-1038-oracle-64kUpgrade linux-image-aws-lts-24.04Upgrade linux-image-lowlatency-64k-6.8Upgrade linux-image-ibm-lts-24.04Upgrade linux-image-6.11.0-1017-oracle-64kUpgrade linux-image-6.11.0-1015-lowlatency-64kUpgrade linux-image-generic-64k-6.8Upgrade linux-image-6.11.0-1015-lowlatencyUpgrade linux-image-6.14.0-1007-azureUpgrade linux-image-6.8.0-86-generic-64kUpgrade linux-image-lowlatency-64k-6.11Upgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-kvmUpgrade linux-image-nvidia-lowlatency-64k-6.8Upgrade linux-image-6.14.0-1007-oracle-64kUpgrade linux-image-6.11.0-1017-oracleUpgrade linux-image-6.8.0-1025-gkeopUpgrade linux-image-azure-fde-6.11Upgrade linux-image-virtualUpgrade linux-image-realtimeUpgrade linux-image-ibm-6.8Upgrade linux-image-6.8.0-86-genericUpgrade linux-image-6.8.0-1042-gcpUpgrade linux-image-6.14.0-1007-oracleUpgrade linux-image-6.8.0-1041-nvidiaUpgrade linux-image-6.11.0-28-generic-64kUpgrade linux-image-lowlatency-6.8Upgrade linux-image-lowlatency-64k-hwe-24.04Upgrade linux-image-gcp-lts-24.04Upgrade linux-image-6.14.0-1004-realtimeUpgrade linux-image-aws-64k-lts-24.04Upgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-oem-22.04dUpgrade linux-image-gcp-64k-6.8Upgrade linux-image-azure-fips | Jun 26, 2025 | Apr 16, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jul 28, 2026 | Apr 16, 2025 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub