Database/Kernel, userspace & hypervisor
Linux kernel vhost-scsi: repeated SET_ENDPOINT calls cause use-after-free, refcount underflow and TPG leaks
Impact
Calling VHOST_SCSI_SET_ENDPOINT more than once without clearing the endpoint in between caused three bugs. If the later call finds no target portal groups, the pointer array is freed and then used: a use-after-free on the next SCSI request from the guest. The refcount on a LIO target portal group can drop to -1, which hangs userspace when it tries to remove the TPG directory. TPGs also leak when the endpoint is re-set to a different target name. This affects hypervisor hosts that back guest disks with vhost-scsi. The record notes that QEMU already refuses repeated set-endpoint calls, so a standard QEMU stack does not trigger it.
Who can reach it
Local on the host. Requires a process that can open /dev/vhost-scsi and issue the ioctl, which in practice means the VMM or root. It is not reachable from inside a guest according to the record.
What to do
Update to a stable kernel with the fix (commits in the record) and reboot the hypervisor hosts. Live-migrate guests off each host first. Hosts that run only stock QEMU are protected by QEMU's own check, which lowers the urgency.
References
Related entries
- Intel ice driver (Ethernet 800 Series, Linux kernel mode): Kernel-mode flaw in the 800-series Ethernet Linux driver (anCVE-2025-22836 · Intel ice driver (Ethernet 800 Series, Linux kernel mode)High
- Intel ice driver (Ethernet 800 Series, Linux kernel mode): Kernel-mode flaw in the 800-series Ethernet Linux driverCVE-2025-22893 · Intel ice driver (Ethernet 800 Series, Linux kernel mode)High
- Intel ice driver (Ethernet 800 Series, Linux kernel mode): Kernel-mode flaw in the 800-series Ethernet Linux driver (aCVE-2025-24303 · Intel ice driver (Ethernet 800 Series, Linux kernel mode)High
- Intel ice driver (Ethernet 800 Series, Linux kernel mode): Kernel-mode flaw in the 800-series Ethernet Linux driverCVE-2025-24484 · Intel ice driver (Ethernet 800 Series, Linux kernel mode)High
- sudo: Local privilege escalation via the `--chroot` optionCVE-2025-32463 · sudoHigh
- Linux kernel (net/tls): KTLS never supported disconnect, but nothing stopped it. A connect(AF_UNSPEC) on a TLS socketCVE-2025-37756 · Linux kernel (net/tls)High
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.