VDB

CVE-2025-38074

CVE-2025-38074 PUBLISHED CVSS 8.8 HIGH

vhost-scsi: protect vq->log_used with vq->mutex

Reported by linux · Published June 18, 2025

In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: protect vq->log_used with vq->mutex The vhost-scsi completion path may access vq->log_base when vq->log_used is already set to false. vhost-thread QEMU-thread vhost_scsi_complete_cmd_work() -> vhost_add_used() -> vhost_add_used_n() if (unlikely(vq->log_used)) QEMU disables vq->log_used via VHOST_SET_VRING_ADDR. mutex_lock(&vq->mutex); vq->log_used = false now! mutex_unlock(&vq->mutex); QEMU gfree(vq->log_base) log_used() -> log_write(vq->log_base) Assuming the VMM is QEMU. The vq->log_base is from QEMU userpace and can be reclaimed via gfree(). As a result, this causes invalid memory writes to QEMU userspace. The control queue path has the same issue.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.14.9, 6.12.31, 6.6.93, 6.1.146, 5.15.189, 5.10.240
LinuxLinuxf591cf9fce724e5075cc67488c43c6e39e8cbe27

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux057cbf49a1f08297877e46c82f707b1bfea806a8, 057cbf49a1f08297877e46c82f707b1bfea806a8, 057cbf49a1f08297877e46c82f707b1bfea806a8
LinuxLinux3.6, 0, 5.10.240
LinuxLinux6.15, 0, 5.15.189
linuxlinux_kernel3.6, 3.6, 3.6

Timeline

  • Jun 17, 2025 CVE Published
  • Jun 18, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (24 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (299 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (311 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Oct 13, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38074
vulnetix vdb fixes CVE-2025-38074

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38074/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›