{"id":"CVE-2025-38074","published":"2025-06-18T09:33:50Z","modified":"2026-08-05T11:59:14Z","title":"vhost-scsi: protect vq->log_used with vq->mutex","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost-scsi: protect vq->log_used with vq->mutex\n\nThe vhost-scsi completion path may access vq->log_base when vq->log_used is\nalready set to false.\n\n    vhost-thread                       QEMU-thread\n\nvhost_scsi_complete_cmd_work()\n-> vhost_add_used()\n   -> vhost_add_used_n()\n      if (unlikely(vq->log_used))\n                                      QEMU disables vq->log_used\n                                      via VHOST_SET_VRING_ADDR.\n                                      mutex_lock(&vq->mutex);\n                                      vq->log_used = false now!\n                                      mutex_unlock(&vq->mutex);\n\n\t\t\t\t      QEMU gfree(vq->log_base)\n        log_used()\n        -> log_write(vq->log_base)\n\nAssuming the VMM is QEMU. The vq->log_base is from QEMU userpace and can be\nreclaimed via gfree(). As a result, this causes invalid memory writes to\nQEMU userspace.\n\nThe control queue path has the same issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00324,"percentile":0.17915,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/80cf68489681c165ded460930e391b1eb37b5f6f","tags":[]},{"url":"https://git.kernel.org/stable/c/8312a1ccff1566f375191a89b9ba71b6eb48a8cd","tags":[]},{"url":"https://git.kernel.org/stable/c/59614c5acf6688f7af3c245d359082c0e9e53117","tags":[]},{"url":"https://git.kernel.org/stable/c/ca85c2d0db5f8309832be45858b960d933c2131c","tags":[]},{"url":"https://git.kernel.org/stable/c/bd8c9404e44adb9f6219c09b3409a61ab7ce3427","tags":[]},{"url":"https://git.kernel.org/stable/c/c0039e3afda29be469d29b3013d7f9bdee136834","tags":[]},{"url":"https://git.kernel.org/stable/c/f591cf9fce724e5075cc67488c43c6e39e8cbe27","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":3.58},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < 80cf68489681c165ded460930e391b1eb37b5f6f",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < 8312a1ccff1566f375191a89b9ba71b6eb48a8cd",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < 59614c5acf6688f7af3c245d359082c0e9e53117",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < ca85c2d0db5f8309832be45858b960d933c2131c",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < bd8c9404e44adb9f6219c09b3409a61ab7ce3427",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < c0039e3afda29be469d29b3013d7f9bdee136834",">= 057cbf49a1f08297877e46c82f707b1bfea806a8, < f591cf9fce724e5075cc67488c43c6e39e8cbe27"]},{"vendor":"Linux","product":"Linux","versions":["3.6"]}],"euvd":{"id":"EUVD-2025-18579","exploited":false,"provenance":"source"}}