Skip to content
Noroxi
CVE-2021-3930· NVD / CVE Program· CNA redhat

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

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.

MediumCVSS 6.5 · v3.1—No exploit Fix available
Published
Feb 18, 2022
Updated
Jun 17, 2026
EPSS
0.3% · 25th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

26

Monitor

Low priority for now.

CVSS
26 / 40 · 6.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.3%

Affected systems

VendorProduct
qemuqemu
redhatcodeready linux builder
redhatcodeready linux builder for ibm z systems
redhatcodeready linux builder for power little endian
redhatopenstack
redhatenterprise linux
redhatenterprise linux advanced virtualization eus
redhatenterprise linux for ibm z systems
redhatenterprise linux for power little endian
debiandebian linux

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux10.0
  • debian debian linux9.0
  • 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 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
  • redhat openstack10
  • redhat openstack13

Versions reported by the vendor

Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.

  • n/a QEMU

    • qemu-kvm 6.2.0-rc0affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8hivexbefore 1.3.18-21.module_el8.5.0+2608+720633651.3.18-21.module_el8.5.0+2608+72063365
AlmaLinux:8hivex-develbefore 1.3.18-21.module_el8.5.0+2608+720633651.3.18-21.module_el8.5.0+2608+72063365
AlmaLinux:8libguestfsbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-bash-completionbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-benchmarkingbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-develbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-gfs2before 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-gobjectbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-gobject-develbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-inspect-iconsbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-javabefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-java-develbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-javadocbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-man-pages-jabefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-man-pages-ukbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-rescuebefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-rsyncbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-toolsbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-tools-cbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libguestfs-winsupportbefore 8.2-1.module_el8.5.0+2608+720633658.2-1.module_el8.5.0+2608+72063365
AlmaLinux:8libguestfs-xfsbefore 1:1.40.2-28.module_el8.5.0+2608+72063365.alma1:1.40.2-28.module_el8.5.0+2608+72063365.alma
AlmaLinux:8libiscsibefore 1.18.0-8.module_el8.6.0+2880+7d9e37031.18.0-8.module_el8.6.0+2880+7d9e3703
AlmaLinux:8libiscsibefore 1.18.0-8.module_el8.5.0+2608+720633651.18.0-8.module_el8.5.0+2608+72063365
AlmaLinux:8libiscsi-develbefore 1.18.0-8.module_el8.6.0+2880+7d9e37031.18.0-8.module_el8.6.0+2880+7d9e3703

+96

Same product

qemu: all records

Other highest-scoring records for the same primary product.

  • CVE-2019-12928The QMP migrate command in QEMU version 4.0.0 and earlier is vulnerable to OS command injection, which allows the remote attacker to achieve
    46Plan
  • CVE-2015-8556Local privilege escalation vulnerability in the Gentoo QEMU package before 2.5.0-r1.
    44Plan
  • CVE-2017-15118A stack-based buffer overflow vulnerability was found in NBD server implementation in qemu before 2.11 allowing a client to request an expor
    43Plan
  • CVE-2022-36648The hardware emulation in the of_dpa_cmd_add_l2_flood of rocker device model in QEMU, as used in 7.0.0 and earlier, allows remote attackers
    41Plan
  • CVE-2017-16845hw/input/ps2.c in Qemu does not validate 'rptr' and 'count' values during guest migration, leading to out-of-bounds access.
    41Plan
  • CVE-2016-7161Heap-based buffer overflow in the .receive callback of xlnx.xps-ethernetlite in QEMU (aka Quick Emulator) allows attackers to execute arbitr
    41Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:hivex1.3.18-21.module_el8.5.0+2608+72063365 · AlmaLinux:8Package registry (OSV)
almalinux:hivex-devel1.3.18-21.module_el8.5.0+2608+72063365 · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-bash-completion1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-benchmarking1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-devel1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-gfs21:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-gobject1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-gobject-devel1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-inspect-icons1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-java1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
almalinux:libguestfs-java-devel1:1.40.2-28.module_el8.5.0+2608+72063365.alma · AlmaLinux:8Package registry (OSV)
debian:qemu1:6.2+dfsg-1 · Debian:12Package registry (OSV)
opensuse:qemu5.2.0-150300.112.4 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:qemu-linux-user5.2.0-150300.112.3 · openSUSE:Leap 15.3Package registry (OSV)
opensuse:qemu-testsuite5.2.0-150300.112.7 · openSUSE:Leap 15.3Package registry (OSV)
red hat:hivex0:1.3.18-21.module+el8.4.0+11609+2eba841a · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:hivex-debuginfo0:1.3.18-21.module+el8.4.0+11609+2eba841a · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:hivex-debugsource0:1.3.18-21.module+el8.4.0+11609+2eba841a · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:hivex-devel0:1.3.18-21.module+el8.4.0+11609+2eba841a · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-bash-completion1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-debuginfo1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-debugsource1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-devel1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-gfs21:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:libguestfs-gobject1:1.44.0-2.module+el8.4.0+10146+75917d2f · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
red hat:SLOF0:20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9 · Red Hat:advanced_virtualization:8.4::el8Package registry (OSV)
rocky linux:hivex0:1.3.18-21.module+el8.4.0+642+7e26f5e1 · Rocky Linux:8Package registry (OSV)
rocky linux:libguestfs1:1.40.2-28.module+el8.5.0+670+c4aa478c · Rocky Linux:8Package registry (OSV)

+12

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted

Impact can extend beyond the vulnerable component (scope changes).

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality impact
None
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-193 · Off-by-one Error

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records