cve.bz

CVE-2021-3507 Out-of-bounds Write

6.1 mediumExploit referenceEPSS 0.5%

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

On this page
A heap buffer overflow was found in the floppy disk emulator of QEMU up to 6.0.0 (including). It could occur in fdctrl_transfer_handler() in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A privileged guest user could use this flaw to crash the QEMU process on the host resulting in DoS scenario, or potential information leakage from the host memory.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 43rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-787 Out-of-bounds Write
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-3507 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3507?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3507?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-3507 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:qemuthrough 6.0.0
debian:debian_linux10.0
redhat:enterprise_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian12, 13, 14qemu1:7.1+dfsg-1DEBIAN-CVE-2021-3507
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.40UBUNTU-CVE-2021-3507 USN-5489-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.23UBUNTU-CVE-2021-3507 USN-5489-1
Ubuntu22.04:LTSqemu1:6.2+dfsg-2ubuntu6.2UBUNTU-CVE-2021-3507 USN-5489-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm6UBUNTU-CVE-2021-3507
UbuntuPro:16.04:LTSqemu1:2.5+dfsg-5ubuntu10.51+esm4UBUNTU-CVE-2021-3507
Red Hatenterprise_linux:8::appstreamhivex, perl-hivex, ruby-hivex and 7 more0:1.3.18-23.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibnbd, nbdfuse, libnbd-devel and 6 more0:1.6.0-5.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibvirt, libvirt-nss, libvirt-docs and 48 more0:8.0.0-10.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamlibvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:8.0.0-2.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamnbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-4.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamqemu-img, qemu-kvm, qemu-kvm-core and 25 more15:6.2.0-20.module+el8.7.0+16689+53d59bc2.1RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamseabios, seabios-bin, seavgabios-bin0:1.16.0-3.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamsgabios, sgabios-bin1:0.20170427git-3.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamsupermin, supermin-devel, supermin-debuginfo and 1 more0:5.2.1-2.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamswtpm, swtpm-libs, swtpm-devel and 6 more0:0.7.0-4.20211109gitb79fd91.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
Red Hatenterprise_linux:8::appstreamvirt-dib, libguestfs, lua-guestfs and 30 more1:1.44.0-9.module+el8.7.0+16689+53d59bc2RHSA-2022:7472
17 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 moreqemu3.1.1.1-150100.80.43.2SUSE-SU-2022:3768-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS and 1 moreqemu4.2.1-150200.72.2SUSE-SU-2023:0878-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 7 moreqemu5.2.0-150300.121.2SUSE-SU-2023:0840-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Server Applications 15 SP4qemu6.2.0-150400.37.14.2SUSE-SU-2023:0879-1
SUSELinux Enterprise Micro 5.4qemu6.2.0-150400.37.14.2SUSE-SU-2023:0879-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5qemu3.1.1.1-66.1SUSE-SU-2023:0761-1
openSUSELeap 15.3qemu3.1.1.1-150100.80.43.2SUSE-SU-2022:3768-1
openSUSELeap 15.4qemu4.2.1-150200.72.2SUSE-SU-2023:0878-1
openSUSELeap 15.4qemu-testsuite, qemu-linux-user6.2.0-150400.37.14.1SUSE-SU-2023:0879-1
openSUSELeap 15.4, Leap Micro 5.3qemu6.2.0-150400.37.14.2SUSE-SU-2023:0879-1
AlmaLinux9qemu-img, qemu-kvm, qemu-kvm-core and 19 more17:7.0.0-13.el9ALSA-2022:7967
Rocky Linux8hivex0:1.3.18-23.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8hivex0:1.3.18-23.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libguestfs1:1.44.0-9.module+el8.7.0+1084+97b81f61.rockyRLSA-2022:7472
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libnbd0:1.6.0-5.module+el8.6.0+847+b490afddRLSA-2022:7472
Rocky Linux8libnbd0:1.6.0-5.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libtpms0:0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+1084+97b81f61RLSA-2022:7472
Rocky Linux8libvirt0:8.0.0-10.module+el8.7.0+1084+97b81f61RLSA-2022:7472
19 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17, v3.18 and 6 moreqemu6.1.0-r0ALPINE-CVE-2021-3507

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. 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 statement

This issue affects the version of `qemu-kvm` as shipped with Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 8 Advanced Virtualization. A future update may address this flaw.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8virt-devel:rhel-8070020220921004438.3b9f49c4Fixed 2022-11-08RHSA-2022:7472
Red Hat Enterprise Linux 8virt:rhel-8070020220921004438.3b9f49c4Fixed 2022-11-08RHSA-2022:7472
Red Hat Enterprise Linux 9qemu-kvm-17:7.0.0-13.el9Fixed 2022-11-15RHSA-2022:7967
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 7qemu-kvm-rhevOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmWill not fix
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/qemu-kvmWill not fix
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/qemu-kvmFix deferred
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-3507.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON