CVE-2025-38074: vhost-scsi: protect vq->log_used with vq->mutex

Published Jun 18, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

The vhost-scsi completion path may access vq->logbase when vq->logused is already set to false.

vhost-thread QEMU-thread

vhostscsicompletecmdwork() -> vhostaddused() -> vhostaddusedn() if (unlikely(vq->logused)) QEMU disables vq->logused via VHOSTSETVRINGADDR. mutexlock(&vq->mutex); vq->logused = false now! mutexunlock(&vq->mutex);

QEMU gfree(vq->logbase) logused() -> logwrite(vq->logbase)

Assuming the VMM is QEMU. The vq->logbase 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.

Affected Software

12 affected components
Linux Kernel
Qemu Qemu
Linux Linux kernel<5.10.240
Linux Linux kernel>=5.11<5.15.189
Linux Linux kernel>=5.16<6.1.146
Linux Linux kernel>=6.2<6.6.93
Linux Linux kernel>=6.7<6.12.31
Linux Linux kernel>=6.13<6.14.9
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Debian Debian Linux=11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Implement the change: vhost-scsi: protect vq->log_used with vq->mutex, so vhost_scsi_complete_cmd_work can safely access vq->log_base when vq->log_used might be reclaimed.

    vhost-scsi (vhost-scsi completion path) Protect vq->log_used with vq->mutex = mutex lock around checks/uses

Event History

Jun 18, 2025
CVE Published
via MITRE·09:33 AM
Data Sourced
via MITRE·09:33 AM
DescriptionSeverity
Data Sourced
via NVD·10:15 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38074?

CVE-2025-38074 has been assessed with a medium severity level due to its potential to lead to information disclosure.

2

How do I fix CVE-2025-38074?

To fix CVE-2025-38074, users should update the Linux kernel and QEMU to the latest secure versions that include the necessary patches.

3

What software is affected by CVE-2025-38074?

CVE-2025-38074 affects the Linux kernel and QEMU implementations that utilize vhost-scsi.

4

What are the consequences of CVE-2025-38074?

Exploitation of CVE-2025-38074 could lead to unreliable behavior in the vhost-scsi subsystem, potentially affecting data integrity.

5

Is CVE-2025-38074 publicly known?

Yes, CVE-2025-38074 is a publicly disclosed vulnerability, making it imperative for users to address it promptly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203