Skip to content
Fencer Vulns
medium 6.5

CVE-2021-3930 json

An off-by-one error was found in the SCSI device emulation in QEMU.

published 2022-02-18 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27146

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 27%
public exploits
0
none known

Summary

An off-by-one error was found in the SCSI device emulation in QEMU. It could occur while processing MODE SELECT commands in mode_sense_page() if the 'page' argument was set to MODE_PAGE_ALLS (0x3f). A malicious guest could use this flaw to potentially crash QEMU, resulting in a denial of service condition.

Patch / fix

  • qemu qemu 6.2.0
  • qemu Debian 14, Debian 13, Debian 12 1:6.2+dfsg-1

debian advisories DEBIAN-CVE-2021-3930

  • qemu Ubuntu 18.04 LTS 1:2.11+dfsg-1ubuntu7.39
  • qemu Ubuntu 20.04 LTS 1:4.2-3ubuntu6.21
  • qemu Ubuntu 22.04 LTS 1:6.2+dfsg-2ubuntu5
  • qemu Ubuntu Pro 14.04 LTS 2.0.0+dfsg-2ubuntu1.47+esm2
  • qemu Ubuntu Pro 16.04 LTS 1:2.5+dfsg-5ubuntu10.51+esm1

ubuntu advisories UBUNTU-CVE-2021-3930

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • SLOF advanced virtualization 8.5 20210217-1.module+el8.5.0+10946+35bb3930
  • hivex advanced virtualization 8.5 1.3.18-22.module+el8.5.0+12087+2208d04c
  • netcf advanced virtualization 8.5, advanced virtualization 8.4 0.2.8-12.module+el8.4.0+8855+a9e237a9
  • swtpm advanced virtualization 8.5 0.6.0-2.20210607gitea627b3.module+el8.5.0+12696+4ce1c6bc
  • libnbd advanced virtualization 8.5 1.6.0-4.module+el8.5.0+11638+3d8f9850
  • nbdkit advanced virtualization 8.5, advanced virtualization 8.4 1.24.0-1.module+el8.4.0+9341+96cf2672
  • libtpms advanced virtualization 8.5 0.7.4-6.20201106git2452a24dab.module+el8.5.0+12487+f2fa92b4
  • libvirt advanced virtualization 8.5 7.6.0-6.module+el8.5.0+13051+7ddbe958

red hat advisories RHSA-2022:0081RHSA-2021:5238RHSA-2021:5065

  • qemu SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.2 +1 more 5.2.0-150300.112.4
  • qemu SLES for SAP 12 SP5, SLES 12 SP5 3.1.1.1-63.4
  • xen SLES 11 SP4-LTSS 4.4.4_50-61.67.1

suse advisories SUSE-SU-2022:0930-2SUSE-SU-2022:1151-1SUSE-SU-2022:0930-1SUSE-SU-2021:14848-1

  • qemu openSUSE Leap 15.3 5.2.0-150300.112.4
  • qemu-testsuite openSUSE Leap 15.3 5.2.0-150300.112.7
  • qemu-linux-user openSUSE Leap 15.3 5.2.0-150300.112.3

opensuse advisories openSUSE-SU-2022:0930-1

  • hivex AlmaLinux 8 1.3.18-21.module_el8.5.0+2608+72063365
  • netcf AlmaLinux 8 0.2.8-12.module_el8.5.0+2608+72063365
  • netcf AlmaLinux 8 0.2.8-12.module_el8.6.0+2880+7d9e3703
  • libnbd AlmaLinux 8 1.2.2-1.module_el8.5.0+2608+72063365
  • nbdkit AlmaLinux 8 1.16.2-4.module_el8.5.0+2608+72063365
  • libvirt AlmaLinux 8 6.0.0-37.module_el8.5.0+2608+72063365
  • nbdfuse AlmaLinux 8 1.2.2-1.module_el8.5.0+2608+72063365
  • seabios AlmaLinux 8 1.13.0-2.module_el8.5.0+2608+72063365

almalinux advisories ALSA-2021:5238

  • hivex Rocky Linux 8 1.3.18-21.module+el8.4.0+642+7e26f5e1
  • hivex Rocky Linux 8 1.3.18-21.module+el8.5.0+670+c4aa478c
  • netcf Rocky Linux 8 0.2.8-12.module+el8.7.0+1084+97b81f61
  • netcf Rocky Linux 8 0.2.8-12.module+el8.4.0+534+4680a14e
  • netcf Rocky Linux 8 0.2.8-12.module+el8.6.0+847+b490afdd
  • libnbd Rocky Linux 8 1.2.2-1.module+el8.4.0+534+4680a14e
  • nbdkit Rocky Linux 8 1.16.2-4.module+el8.4.0+534+4680a14e
  • libvirt Rocky Linux 8 6.0.0-37.module+el8.5.0+670+c4aa478c

rocky linux advisories RLSA-2021:5238

  • qemu Alpine 3.15 6.1.1-r0

alpine advisories ALPINE-CVE-2021-3930

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • qemu CBL-Mariner 2.0 6.2.0-2

azure linux advisories AZL-8671

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-3930 updated cvss 3.2

QEMU: off-by-one error in mode_sense_page() in hw/scsi/scsi-disk.c

  • Red Hat Enterprise Linux 6 qemu-img, qemu-kvm, qemu-kvm-tools, qemu-guest-agent, qemu-guest-agent-win32 Red Hat Enterprise Linux 7 qemu-img, qemu-kvm, libcacard, qemu-img-ma, qemu-kvm-ma, qemu-kvm-tools, +5 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 Advanced Virtualization qemu-img, qemu-kvm, qemu-kiwi, qemu-kvm-core, qemu-kvm-tests, qemu-kvm-common, +9 more
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat OpenStack Platform 10 (Newton) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhev Red Hat OpenStack Platform 13 (Queens) qemu-img-rhev, qemu-kvm-rhev, qemu-kvm-tools-rhev, qemu-kvm-common-rhev
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Advanced Virtualization for RHEL 8.4.0.EUS libnbd 1.6.0-3.module+el8.4.0+9856+bbc47853, netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, nbdfuse 1.6.0-3.module+el8.4.0+9856+bbc47853, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-21.module+el8.4.0+11609+2eba841a, seabios 1.14.0-1.module+el8.4.0+8855+a9e237a9, +110 more
    fixed: vendor fix RHSA-2021:5065
  • Red Hat Advanced Virtualization for RHEL 8.5.0.Z netcf 0.2.8-12.module+el8.4.0+8855+a9e237a9, libnbd 1.6.0-4.module+el8.5.0+11638+3d8f9850, nbdkit 1.24.0-1.module+el8.4.0+9341+96cf2672, hivex 1.3.18-22.module+el8.5.0+12087+2208d04c, libvirt 7.6.0-6.module+el8.5.0+13051+7ddbe958, nbdfuse 1.6.0-4.module+el8.5.0+11638+3d8f9850, +110 more
    fixed: vendor fix RHSA-2022:0081
  • Red Hat CodeReady Linux Builder (v. 8) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, hivex 1.3.18-21.module+el8.5.0+10709+b3edb581, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, libiscsi 1.18.0-8.module+el8.1.0+4066+0f1aadab, +39 more Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.2.2-1.module+el8.3.0+7353+9de0a3cc, netcf 0.2.8-12.module+el8.1.0+4066+0f1aadab, nbdfuse 1.2.2-1.module+el8.3.0+7353+9de0a3cc, nbdkit 1.16.2-4.module+el8.3.0+6922+fd575af8, hivex 1.3.18-21.module+el8.5.0+10709+b3edb581, seabios 1.13.0-2.module+el8.3.0+7353+9de0a3cc, +88 more
    fixed: vendor fix RHSA-2021:5238
  • Red Hat Enterprise Linux 9 qemu-img, qemu-kvm, qemu-kvm-core, qemu-kvm-tools, qemu-pr-helper, qemu-kvm-common, +16 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 6.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
NVD 2.0 2.1 AV:L/AC:L/Au:N/C:N/I:N/A:P

Affected products

  • n/a QEMU

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.