CVE-2021-3607: Input Validation

Published Jun 17, 2021
·
Updated

An integer overflow was found in the QEMU implementation of VMWare's paravirtual RDMA device in versions prior to 6.1.0. The issue occurs while handling a "PVRDMAREGDSRHIGH" write from the guest due to improper input validation. This flaw allows a privileged guest user to make QEMU allocate a large amount of memory, resulting in a denial of service. The highest threat from this vulnerability is to system availability.

Other sources

An integer overflow was found in the QEMU implementation of VMWare's paravirtual RDMA device. It could occur while handling a "PVRDMAREGDSRHIGH" write from the guest due to improper input validation. More specifically, the initdevring() function in pvrdmamain.c does not validate the guest supplied 'numpages' which is subsequently decremented and used in pvrdmaringinit() to allocate dynamic memory via gmalloc(). This could result in a NULL pointer dereference issue (if gmalloc returns NULL) or allocation of large amount of memory and out-of-bounds read access. A privileged guest user could exploit this flaw to crash the QEMU process on the host, resulting in a denial of service condition.

static int initdevring(..., uint32t numpages) { ... rc = pvrdmaringinit(..., (dmaaddrt)numpages - 1); // guest may provide numpages = 0 ... }

int pvrdmaringinit(..., uint32t npages) { ... ring->pages = gmalloc(npages sizeof(void )); // npages may be -1 here for (i = 0; i < npages; i++) { ... ring->pages[i] = rdmapcidmamap(dev, tbl[i], TARGETPAGESIZE); ... }

Red Hat

Affected Software

5 affected componentsFixes available
redhat/qemu-kvm<6.1.0
6.1.0
Qemu Qemu<6.1.0
Debian Debian Linux=10.0
Fedoraproject Fedora=34
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u121:9.2.2+ds-11:10.0.0~rc2+ds-2

Event History

Feb 24, 2022
CVE Published
via MITRE·06:50 PM
Data Sourced
via MITRE·06:50 PM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:57 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:33 AM
RemedyDescriptionSeverityAffected Software
Mar 31, 2025
Data Sourced
via Debian·01:07 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2021-3607.

2

What is the severity level of CVE-2021-3607?

The severity level of CVE-2021-3607 is medium.

3

What is the affected software for CVE-2021-3607?

The affected software for CVE-2021-3607 includes QEMU qemu, Debian Debian Linux, and Fedoraproject Fedora.

4

How does CVE-2021-3607 occur?

CVE-2021-3607 occurs due to an integer overflow in the QEMU implementation of VMWare's paravirtual RDMA device.

5

Where can I find more information about CVE-2021-3607?

You can find more information about CVE-2021-3607 at the following references: [1], [2], [3]

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