{"id":"CVE-2025-38074","aliases":["CVE-2025-38074"],"related":[],"kind":"vulnerability","state":"published","title":"vhost-scsi: protect vq->log_used with vq->mutex","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vhost-scsi: proteger vq-&gt;log_used con vq-&gt;mutex La ruta de finalización de vhost-scsi puede acceder a vq-&gt;log_base cuando vq-&gt;log_used ya está configurado como falso. vhost-thread QEMU-thread vhost_scsi_complete_cmd_work() -&gt; vhost_add_used() -&gt; vhost_add_used_n() if (unlikely(vq-&gt;log_used)) QEMU deshabilita vq-&gt;log_used mediante VHOST_SET_VRING_ADDR. mutex_lock(&amp;vq-&gt;mutex); vq-&gt;log_used = false now! mutex_unlock(&amp;vq-&gt;mutex); QEMU gfree(vq-&gt;log_base) log_used() -&gt; log_write(vq-&gt;log_base) Suponiendo que el VMM es QEMU. La ruta vq-&gt;log_base proviene del espacio de usuario de QEMU y se puede recuperar mediante gfree(). Como resultado, esto provoca escrituras de memoria no válidas en el espacio de usuario de QEMU. La ruta de la cola de control presenta el mismo problema.","source":"nvd"}],"published":"2025-06-18T09:33:50.006Z","modified":"2026-08-05T11:59:14.881Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"80cf68489681c165ded460930e391b1eb37b5f6f","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"8312a1ccff1566f375191a89b9ba71b6eb48a8cd","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"59614c5acf6688f7af3c245d359082c0e9e53117","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"ca85c2d0db5f8309832be45858b960d933c2131c","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"bd8c9404e44adb9f6219c09b3409a61ab7ce3427","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"c0039e3afda29be469d29b3013d7f9bdee136834","status":"affected"},{"type":"git","introduced":"057cbf49a1f08297877e46c82f707b1bfea806a8","fixed":"f591cf9fce724e5075cc67488c43c6e39e8cbe27","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6","status":"unaffected"},{"type":"semver","introduced":"5.10.240","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.189","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.146","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.93","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.31","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.9","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.10.240"},{"status":"affected","introduced":"5.11","fixed":"5.15.189"},{"status":"affected","introduced":"5.16","fixed":"6.1.146"},{"status":"affected","introduced":"6.2","fixed":"6.6.93"},{"status":"affected","introduced":"6.7","fixed":"6.12.31"},{"status":"affected","introduced":"6.13","fixed":"6.14.9"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/80cf68489681c165ded460930e391b1eb37b5f6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8312a1ccff1566f375191a89b9ba71b6eb48a8cd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59614c5acf6688f7af3c245d359082c0e9e53117","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca85c2d0db5f8309832be45858b960d933c2131c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd8c9404e44adb9f6219c09b3409a61ab7ce3427","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0039e3afda29be469d29b3013d7f9bdee136834","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f591cf9fce724e5075cc67488c43c6e39e8cbe27","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38074","url":"https://www.cve.org/CVERecord?id=CVE-2025-38074","licence":"CVE Terms of Use","modified":"2026-08-05T11:59:14.881Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38074","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38074","licence":"Public domain","modified":"2026-07-30T06:22:48.127Z"}],"updatedAt":"2026-11-25T22:58:59.372Z","epss":{"score":0.00233,"percentile":0.15247,"date":"2026-12-01T12:00:22.000Z"}}