cve.bz

CVE-2021-3930 Off-by-one Error

6.5 mediumEPSS 0.3%Fix available

Medium (6.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 28th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3930 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3930?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3930?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3930 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
qemu:qemubefore 6.2.0
redhat:codeready_linux_builder8.0
redhat:codeready_linux_builder_for_ibm_z_systems8.0
redhat:codeready_linux_builder_for_power_little_endian8.0
redhat:openstack10
redhat:openstack13
redhat:enterprise_linux8.0
redhat:enterprise_linux_advanced_virtualization_eus8.4
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_power_little_endian8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9qemu1:2.8+dfsg-6+deb9u17DLA-2970-1
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian12, 13, 14qemu1:6.2+dfsg-1DEBIAN-CVE-2021-3930
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.39UBUNTU-CVE-2021-3930 USN-5307-1 USN-5772-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.21UBUNTU-CVE-2021-3930 USN-5307-1 USN-5772-1
Ubuntu22.04:LTSqemu1:6.2+dfsg-2ubuntu5UBUNTU-CVE-2021-3930 USN-5772-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm2UBUNTU-CVE-2021-3930 USN-5772-1
UbuntuPro:16.04:LTSqemu1:2.5+dfsg-5ubuntu10.51+esm1UBUNTU-CVE-2021-3930 USN-5772-1
Red Hatadvanced_virtualization:8.4::el8SLOF0:20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-21.module+el8.4.0+11609+2eba841aRHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libguestfs-winsupport0:8.2-2.module+el8.4.0+12717+0b0da9adRHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.4.0+8855+a9e237a9RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libnbd, nbdfuse, libnbd-devel and 9 more0:1.6.0-3.module+el8.4.0+9856+bbc47853RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.4-4.20201106git2452a24dab.module+el8.4.0+10596+32ba7df3RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libvirt, libvirt-nss, libvirt-docs and 51 more0:7.0.0-14.5.module+el8.4.0+13026+f38c77abRHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.4.0+8855+a9e237a9RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8nbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-1.module+el8.4.0+9341+96cf2672RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.4.0+8855+a9e237a9RHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8perl-Sys-Virt, libvirt-python, python3-libvirt and 4 more0:7.0.0-1.module+el8.4.0+9469+2eaf72bcRHSA-2021:5065
Red Hatadvanced_virtualization:8.4::el8python-pyvmomi, python3-pyvmomi0:6.7.1-7.module+el8.4.0+8855+a9e237a9RHSA-2021:5065
50 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3qemu5.2.0-150300.112.4SUSE-SU-2022:0930-1
SUSELinux Enterprise Micro 5.2qemu5.2.0-150300.112.4SUSE-SU-2022:0930-2
SUSELinux Enterprise Server 11 SP4-LTSSxen4.4.4_50-61.67.1SUSE-SU-2021:14848-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5qemu3.1.1.1-63.4SUSE-SU-2022:1151-1
openSUSELeap 15.3qemu5.2.0-150300.112.4openSUSE-SU-2022:0930-1
openSUSELeap 15.3qemu-linux-user5.2.0-150300.112.3openSUSE-SU-2022:0930-1
openSUSELeap 15.3qemu-testsuite5.2.0-150300.112.7openSUSE-SU-2022:0930-1
AlmaLinux8hivex, perl-hivex, ruby-hivex and 2 more1.3.18-21.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libguestfs-winsupport8.2-1.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 1 more1.2.2-1.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt, libvirt-nss, libvirt-docs and 26 more6.0.0-37.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 11 more1.16.2-4.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.5.0+2608+72063365ALSA-2021:5238
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2021:5238
AlmaLinux8perl-Sys-Virt, python3-libvirt6.0.0-1.module_el8.5.0+2608+72063365ALSA-2021:5238
6 more for AlmaLinux in the JSON.
Rocky Linux8hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1RLSA-2021:5238
Rocky Linux8hivex0:1.3.18-21.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libguestfs1:1.40.2-28.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libguestfs-winsupport0:8.2-1.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2021:5238
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2021:5238
Rocky Linux8libnbd0:1.2.2-1.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libvirt0:6.0.0-37.module+el8.5.0+670+c4aa478cRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.4.0+534+4680a14eRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.6.0+847+b490afddRLSA-2021:5238
Rocky Linux8libvirt-dbus0:1.3.0-2.module+el8.7.0+1084+97b81f61RLSA-2021:5238
11 more for Rocky Linux in the JSON.
Alpinev3.15qemu6.1.1-r0ALPINE-CVE-2021-3930
Azure Linux2qemu6.2.0-2AZL-8671

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.4.0.EUSvirt:av-8040020211126213321.522a0ee4Fixed 2021-12-09RHSA-2021:5065
Advanced Virtualization for RHEL 8.4.0.EUSvirt-devel:av-8040020211126213321.522a0ee4Fixed 2021-12-09RHSA-2021:5065
Advanced Virtualization for RHEL 8.5.0.Zvirt:av-8050020211203164130.c5368500Fixed 2022-01-11RHSA-2022:0081
Advanced Virtualization for RHEL 8.5.0.Zvirt-devel:av-8050020211203164130.c5368500Fixed 2022-01-11RHSA-2022:0081
Red Hat Enterprise Linux 8virt-devel:rhel-8050020211203195115.c5368500Fixed 2021-12-21RHSA-2021:5238
Red Hat Enterprise Linux 8virt:rhel-8050020211203195115.c5368500Fixed 2021-12-21RHSA-2021:5238
Red Hat Enterprise Linux 6qemu-kvmOut of support scope
Red Hat Enterprise Linux 7qemu-kvmOut of support scope
Red Hat Enterprise Linux 7qemu-kvm-maOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmWill not fix
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/qemu-kvmAffected
Red Hat Enterprise Linux 9qemu-kvmNot affected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevOut of support scope
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3930.

References

Check your stackJSON