CVE-2025-38074
vhost-scsi: protect vq->log_used with vq->mutex
Check your servers for CVE-2025-38074
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38074 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before 80cf68489681c165ded460930e391b1eb37b5f6f affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before 8312a1ccff1566f375191a89b9ba71b6eb48a8cd affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before 59614c5acf6688f7af3c245d359082c0e9e53117 affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before ca85c2d0db5f8309832be45858b960d933c2131c affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before bd8c9404e44adb9f6219c09b3409a61ab7ce3427 affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before c0039e3afda29be469d29b3013d7f9bdee136834 affected from 057cbf49a1f08297877e46c82f707b1bfea806a8, before f591cf9fce724e5075cc67488c43c6e39e8cbe27
Other versions: unaffected
|
| Linux |
affected 3.6 unaffected before 3.6 unaffected from 5.10.240 up to and including 5.10.* unaffected from 5.15.189 up to and including 5.15.* unaffected from 6.1.146 up to and including 6.1.* unaffected from 6.6.93 up to and including 6.6.* unaffected from 6.12.31 up to and including 6.12.* unaffected from 6.14.9 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38074 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38074
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38074
trivy image --scanners vuln IMAGE | grep CVE-2025-38074
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/80cf68489681c165ded460930e391b1eb37b5f6f git.kernel.org
- https://git.kernel.org/stable/c/8312a1ccff1566f375191a89b9ba71b6eb48a8cd git.kernel.org
- https://git.kernel.org/stable/c/59614c5acf6688f7af3c245d359082c0e9e53117 git.kernel.org
- https://git.kernel.org/stable/c/ca85c2d0db5f8309832be45858b960d933c2131c git.kernel.org
- https://git.kernel.org/stable/c/bd8c9404e44adb9f6219c09b3409a61ab7ce3427 git.kernel.org
- https://git.kernel.org/stable/c/c0039e3afda29be469d29b3013d7f9bdee136834 git.kernel.org
- https://git.kernel.org/stable/c/f591cf9fce724e5075cc67488c43c6e39e8cbe27 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38074 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse