CVE-2013-4540
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to...
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
Exploit likelihood
What each source reports
NVD Score used
7.5
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
CVE-2013-4540- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
CVE-2013-4540- Updated
- 2026-11-02
EUVDEUVD-2013-4399 No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
EUVD-2013-4399- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-67xx-4xq4-jj46 No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to...
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
GHSA-67xx-4xq4-jj46- Weakness
- CWE-119
- Updated
- 2026-11-02
OSV No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
CVE-2013-4540- Updated
- 2026-11-02
OSVDEBIAN-CVE-2013-4540 No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
DEBIAN-CVE-2013-4540- Updated
- 2026-11-02
Show 5 moreShow less
OSVMGASA-2014-0426 No score
Updated qemu packages fix multiple security vulnerabilities
Updated qemu packages fix security vulnerabilities:
Michael S. Tsirkin discovered that QEMU incorrectly handled vmxnet3 devices. A local guest could possibly use this issue to cause a denial of service, or possibly execute arbitrary code on the host (CVE-2013-4544).
Multiple integer overflow, input validation, logic error, and buffer overflow flaws were discovered in various QEMU block drivers. An attacker able to modify a disk image file loaded by a guest could use these flaws to crash the guest, or corrupt QEMU process memory on the host, potentially resulting in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2014-0143, CVE-2014-0144, CVE-2014-0145, CVE-2014-0147).
A buffer overflow flaw was found in the way the virtio_net_handle_mac() function of QEMU processed guest requests to update the table of MAC addresses. A privileged guest user could use this flaw to corrupt QEMU process memory on the host, potentially resulting in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2014-0150).
A divide-by-zero flaw was found in the seek_to_sector() function of the parallels block driver in QEMU. An attacker able to modify a disk image file loaded by a guest could use this flaw to crash the guest (CVE-2014-0142).
A NULL pointer dereference flaw was found in the QCOW2 block driver in QEMU. An attacker able to modify a disk image file loaded by a guest could use this flaw to crash the guest (CVE-2014-0146).
It was found that the block driver for Hyper-V VHDX images did not correctly calculate BAT (Block Allocation Table) entries due to a missing bounds check. An attacker able to modify a disk image file loaded by a guest could use this flaw to crash the guest (CVE-2014-0148).
An out-of-bounds memory access flaw was found in the way QEMU's IDE device driver handled the execution of SMART EXECUTE OFFLINE commands. A privileged guest user could use this flaw to corrupt QEMU process memory on the host, which could potentially result in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2014-2894).
Two integer overflow flaws were found in the QEMU block driver for QCOW version 1 disk images. A user able to alter the QEMU disk image files loaded by a guest could use either of these flaws to corrupt QEMU process memory on the host, which could potentially result in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2014-0222, CVE-2014-0223).
Multiple buffer overflow, input validation, and out-of-bounds write flaws were found in the way the virtio, virtio-net, virtio-scsi, and usb drivers of QEMU handled state loading after migration. A user able to alter the savevm data (either on the disk or over the wire during migration) could use either of these flaws to corrupt QEMU process memory on the (destination) host, which could potentially result in arbitrary code execution on the host with the privileges of the QEMU process (CVE-2013-4148, CVE-2013-4151, CVE-2013-4535, CVE-2013-4536, CVE-2013-4541, CVE-2013-4542, CVE-2013-6399, CVE-2014-0182, CVE-2014-3461).
An information leak flaw was found in the way QEMU's VGA emulator accessed frame buffer memory for high resolution displays. A privileged guest user could use this flaw to leak memory contents of the host to the guest by setting the display to use a high resolution in the guest (CVE-2014-3615).
When guest sends udp packet with source port and source addr 0, uninitialized socket is picked up when looking for matching and already created udp sockets, and later passed to sosendto() where NULL pointer dereference is hit during so->slirp->vnetwork_mask.s_addr access Only guests using qemu user networking are affected (CVE-2014-3640).
- Record
MGASA-2014-0426- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10196-1 No score
xen-4.7.0_12-1.3 on GA media
These are all security issues fixed in the xen-4.7.0_12-1.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10196-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10233-1 No score
qemu-2.6.1-1.5 on GA media
These are all security issues fixed in the qemu-2.6.1-1.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10233-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2013-4540 No score
Buffer overflow in scoop_gpio_handler_update in QEMU before 1.7.2 might allow remote attackers to execute arbitrary code via a large (1) prev_level, (2) gpio_level, or (3) gpio_dir value in a savevm image.
- Record
UBUNTU-CVE-2013-4540- Updated
- 2026-11-02
OSVUSN-2342-1 No score
qemu, qemu-kvm vulnerabilities
Michael S. Tsirkin, Anthony Liguori, and Michael Roth discovered multiple issues with QEMU state loading after migration. An attacker able to modify the state data could use these issues to cause a denial of service, or possibly execute arbitrary code. (CVE-2013-4148, CVE-2013-4149, CVE-2013-4150, CVE-2013-4151, CVE-2013-4526, CVE-2013-4527, CVE-2013-4529, CVE-2013-4530, CVE-2013-4531, CVE-2013-4532, CVE-2013-4533, CVE-2013-4534, CVE-2013-4535, CVE-2013-4536, CVE-2013-4537, CVE-2013-4538, CVE-2013-4539, CVE-2013-4540, CVE-2013-4541, CVE-2013-4542, CVE-2013-6399, CVE-2014-0182, CVE-2014-3461)
Kevin Wolf, Stefan Hajnoczi, Fam Zheng, Jeff Cody, Stefan Hajnoczi, and others discovered multiple issues in the QEMU block drivers. An attacker able to modify disk images could use these issues to cause a denial of service, or possibly execute arbitrary code. (CVE-2014-0142, CVE-2014-0143, CVE-2014-0144, CVE-2014-0145, CVE-2014-0146, CVE-2014-0147, CVE-2014-0222, CVE-2014-0223)
It was discovered that QEMU incorrectly handled certain PCIe bus hotplug operations. A malicious guest could use this issue to crash the QEMU host, resulting in a denial of service. (CVE-2014-3471)
- Record
USN-2342-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
qemuDebian:12 |
before 2.1+dfsg-1 | 2.1+dfsg-1 |
qemuDebian:13 |
before 2.1+dfsg-1 | 2.1+dfsg-1 |
qemuDebian:14 |
before 2.1+dfsg-1 | 2.1+dfsg-1 |
qemuMageia:4 From an advisory covering 34 CVEs |
before 1.6.2-1.2.mga4 | 1.6.2-1.2.mga4 |
qemuUbuntu:14.04:LTS |
before 2.0.0+dfsg-2ubuntu1.3, plus listed versions 1.5.0+dfsg-3ubuntu51.5.0+dfsg-3ubuntu61.6.0+dfsg-2ubuntu11.6.0+dfsg-2ubuntu21.6.0+dfsg-2ubuntu3 Show 24 moreShow less1.6.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu11.7.0+dfsg-2ubuntu21.7.0+dfsg-2ubuntu31.7.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu51.7.0+dfsg-2ubuntu71.7.0+dfsg-2ubuntu81.7.0+dfsg-2ubuntu91.7.0+dfsg-3ubuntu1~ppa11.7.0+dfsg-3ubuntu11.7.0+dfsg-3ubuntu21.7.0+dfsg-3ubuntu31.7.0+dfsg-3ubuntu41.7.0+dfsg-3ubuntu51.7.0+dfsg-3ubuntu61.7.0+dfsg-3ubuntu72.0.0~rc1+dfsg-0ubuntu12.0.0~rc1+dfsg-0ubuntu22.0.0~rc1+dfsg-0ubuntu32.0.0~rc1+dfsg-0ubuntu3.12.0.0+dfsg-2ubuntu12.0.0+dfsg-2ubuntu1.12.0.0+dfsg-2ubuntu1.2 |
2.0.0+dfsg-2ubuntu1.3 |
qemuUbuntu:14.04:LTS From an advisory covering 32 CVEs |
before 2.0.0+dfsg-2ubuntu1.3, plus listed versions 1.5.0+dfsg-3ubuntu51.5.0+dfsg-3ubuntu61.6.0+dfsg-2ubuntu11.6.0+dfsg-2ubuntu21.6.0+dfsg-2ubuntu3 Show 24 moreShow less1.6.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu11.7.0+dfsg-2ubuntu21.7.0+dfsg-2ubuntu31.7.0+dfsg-2ubuntu41.7.0+dfsg-2ubuntu51.7.0+dfsg-2ubuntu71.7.0+dfsg-2ubuntu81.7.0+dfsg-2ubuntu91.7.0+dfsg-3ubuntu1~ppa11.7.0+dfsg-3ubuntu11.7.0+dfsg-3ubuntu21.7.0+dfsg-3ubuntu31.7.0+dfsg-3ubuntu41.7.0+dfsg-3ubuntu51.7.0+dfsg-3ubuntu61.7.0+dfsg-3ubuntu72.0.0~rc1+dfsg-0ubuntu12.0.0~rc1+dfsg-0ubuntu22.0.0~rc1+dfsg-0ubuntu32.0.0~rc1+dfsg-0ubuntu3.12.0.0+dfsg-2ubuntu12.0.0+dfsg-2ubuntu1.12.0.0+dfsg-2ubuntu1.2 |
2.0.0+dfsg-2ubuntu1.3 |
xenopenSUSE:Tumbleweed From an advisory covering 124 CVEs |
before 4.7.0_12-1.3 | 4.7.0_12-1.3 |
qemuopenSUSE:Tumbleweed From an advisory covering 53 CVEs |
before 2.6.1-1.5 | 2.6.1-1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2013-4540 is a high vulnerability (CVSS 7.5) in Qemu, published February 20, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.55%, the 91st percentile. Fixed in qemu 2.1+dfsg-1.
References
lists.opensuse.org/opensuse-security-announce/2014-10/msg00003.html
lists.nongnu.org/archive/html/qemu-stable/2014-07/msg00187.html
lists.opensuse.org/opensuse-security-announce/2014-10/msg00002.html
lists.gnu.org/archive/html/qemu-devel/2013-12/msg00394.html
lists.fedoraproject.org/pipermail/package-announce/2014-May/133345.html
git.qemu.org?p=qemu.git%3Ba=commit%3Bh=52f91c3723932f8340fe36c8ec8b18a757c37b2b
Show 194 moreShow less
nvd.nist.gov/vuln/detail/CVE-2013-4540
git.qemu.org?p=qemu.git;a=commit;h=52f91c3723932f8340fe36c8ec8b18a757c37b2b
github.com/advisories/GHSA-67xx-4xq4-jj46
security-tracker.debian.org/tracker/CVE-2013-4540
advisories.mageia.org/MGASA-2014-0426.html
bugs.mageia.org/show_bug.cgi?id=13096
lists.fedoraproject.org/pipermail/package-announce/2014-June/134053.html
lists.fedoraproject.org/pipermail/package-announce/2014-September/137578.html
lists.fedoraproject.org/pipermail/package-announce/2014-October/140130.html
rhn.redhat.com/errata/RHSA-2014-0420.html
rhn.redhat.com/errata/RHSA-2014-0704.html
rhn.redhat.com/errata/RHSA-2014-0743.html
rhn.redhat.com/errata/RHSA-2014-1669.html
ubuntu.com/usn/usn-2182-1
ubuntu.com/security/CVE-2013-4540
lists.gnu.org/archive/html/qemu-devel/2013-12/msg00412.html
ubuntu.com/security/notices/USN-2342-1
cve.org/CVERecord?id=CVE-2013-4540
ubuntu.com/security/CVE-2013-4148
ubuntu.com/security/CVE-2013-4149
ubuntu.com/security/CVE-2013-4150
ubuntu.com/security/CVE-2013-4151
ubuntu.com/security/CVE-2013-4526
ubuntu.com/security/CVE-2013-4527
ubuntu.com/security/CVE-2013-4529
ubuntu.com/security/CVE-2013-4530
ubuntu.com/security/CVE-2013-4531
ubuntu.com/security/CVE-2013-4532
ubuntu.com/security/CVE-2013-4533
ubuntu.com/security/CVE-2013-4534
ubuntu.com/security/CVE-2013-4535
ubuntu.com/security/CVE-2013-4536
ubuntu.com/security/CVE-2013-4537
ubuntu.com/security/CVE-2013-4538
ubuntu.com/security/CVE-2013-4539
ubuntu.com/security/CVE-2013-4541
ubuntu.com/security/CVE-2013-4542
ubuntu.com/security/CVE-2013-6399
ubuntu.com/security/CVE-2014-0142
ubuntu.com/security/CVE-2014-0143
ubuntu.com/security/CVE-2014-0144
ubuntu.com/security/CVE-2014-0145
ubuntu.com/security/CVE-2014-0146
ubuntu.com/security/CVE-2014-0147
ubuntu.com/security/CVE-2014-0182
ubuntu.com/security/CVE-2014-0222
ubuntu.com/security/CVE-2014-0223
ubuntu.com/security/CVE-2014-3461
ubuntu.com/security/CVE-2014-3471
suse.com/security/cve/CVE-2011-1898
suse.com/security/cve/CVE-2012-0029
suse.com/security/cve/CVE-2012-0217
suse.com/security/cve/CVE-2012-2625
suse.com/security/cve/CVE-2012-3432
suse.com/security/cve/CVE-2012-3433
suse.com/security/cve/CVE-2012-4411
suse.com/security/cve/CVE-2012-4535
suse.com/security/cve/CVE-2012-4536
suse.com/security/cve/CVE-2012-4537
suse.com/security/cve/CVE-2012-4538
suse.com/security/cve/CVE-2012-4539
suse.com/security/cve/CVE-2012-4544
suse.com/security/cve/CVE-2012-5510
suse.com/security/cve/CVE-2012-5511
suse.com/security/cve/CVE-2012-5513
suse.com/security/cve/CVE-2012-5514
suse.com/security/cve/CVE-2012-5515
suse.com/security/cve/CVE-2012-5525
suse.com/security/cve/CVE-2012-5634
suse.com/security/cve/CVE-2012-6075
suse.com/security/cve/CVE-2013-0151
suse.com/security/cve/CVE-2013-0152
suse.com/security/cve/CVE-2013-0153
suse.com/security/cve/CVE-2013-1442
suse.com/security/cve/CVE-2013-1917
suse.com/security/cve/CVE-2013-1918
suse.com/security/cve/CVE-2013-1919
suse.com/security/cve/CVE-2013-1922
suse.com/security/cve/CVE-2013-1952
suse.com/security/cve/CVE-2013-2007
suse.com/security/cve/CVE-2013-3495
suse.com/security/cve/CVE-2013-4355
suse.com/security/cve/CVE-2013-4356
suse.com/security/cve/CVE-2013-4361
suse.com/security/cve/CVE-2013-4375
suse.com/security/cve/CVE-2013-4416
suse.com/security/cve/CVE-2013-4494
suse.com/security/cve/CVE-2013-4533
suse.com/security/cve/CVE-2013-4534
suse.com/security/cve/CVE-2013-4537
suse.com/security/cve/CVE-2013-4538
suse.com/security/cve/CVE-2013-4539
suse.com/security/cve/CVE-2013-4540
suse.com/security/cve/CVE-2013-4551
suse.com/security/cve/CVE-2013-4553
suse.com/security/cve/CVE-2013-4554
suse.com/security/cve/CVE-2014-0222
suse.com/security/cve/CVE-2014-3124
suse.com/security/cve/CVE-2014-3640
suse.com/security/cve/CVE-2014-3672
suse.com/security/cve/CVE-2014-5146
suse.com/security/cve/CVE-2014-5149
suse.com/security/cve/CVE-2014-6268
suse.com/security/cve/CVE-2014-7154
suse.com/security/cve/CVE-2014-7155
suse.com/security/cve/CVE-2014-7156
suse.com/security/cve/CVE-2014-7188
suse.com/security/cve/CVE-2014-7815
suse.com/security/cve/CVE-2015-1779
suse.com/security/cve/CVE-2015-3259
suse.com/security/cve/CVE-2015-3340
suse.com/security/cve/CVE-2015-3456
suse.com/security/cve/CVE-2015-4037
suse.com/security/cve/CVE-2015-4103
suse.com/security/cve/CVE-2015-4104
suse.com/security/cve/CVE-2015-4105
suse.com/security/cve/CVE-2015-4106
suse.com/security/cve/CVE-2015-5154
suse.com/security/cve/CVE-2015-5239
suse.com/security/cve/CVE-2015-5278
suse.com/security/cve/CVE-2015-5307
suse.com/security/cve/CVE-2015-6815
suse.com/security/cve/CVE-2015-6855
suse.com/security/cve/CVE-2015-7311
suse.com/security/cve/CVE-2015-7504
suse.com/security/cve/CVE-2015-7512
suse.com/security/cve/CVE-2015-7549
suse.com/security/cve/CVE-2015-7835
suse.com/security/cve/CVE-2015-7969
suse.com/security/cve/CVE-2015-7970
suse.com/security/cve/CVE-2015-7971
suse.com/security/cve/CVE-2015-7972
suse.com/security/cve/CVE-2015-8104
suse.com/security/cve/CVE-2015-8339
suse.com/security/cve/CVE-2015-8340
suse.com/security/cve/CVE-2015-8341
suse.com/security/cve/CVE-2015-8345
suse.com/security/cve/CVE-2015-8504
suse.com/security/cve/CVE-2015-8550
suse.com/security/cve/CVE-2015-8554
suse.com/security/cve/CVE-2015-8555
suse.com/security/cve/CVE-2015-8558
suse.com/security/cve/CVE-2015-8567
suse.com/security/cve/CVE-2015-8568
suse.com/security/cve/CVE-2015-8613
suse.com/security/cve/CVE-2015-8615
suse.com/security/cve/CVE-2015-8619
suse.com/security/cve/CVE-2015-8743
suse.com/security/cve/CVE-2015-8744
suse.com/security/cve/CVE-2015-8745
suse.com/security/cve/CVE-2016-1568
suse.com/security/cve/CVE-2016-1570
suse.com/security/cve/CVE-2016-1571
suse.com/security/cve/CVE-2016-1714
suse.com/security/cve/CVE-2016-1922
suse.com/security/cve/CVE-2016-1981
suse.com/security/cve/CVE-2016-2198
suse.com/security/cve/CVE-2016-2270
suse.com/security/cve/CVE-2016-2271
suse.com/security/cve/CVE-2016-2391
suse.com/security/cve/CVE-2016-2392
suse.com/security/cve/CVE-2016-2538
suse.com/security/cve/CVE-2016-2841
suse.com/security/cve/CVE-2016-4439
suse.com/security/cve/CVE-2016-4441
suse.com/security/cve/CVE-2016-5238
suse.com/security/cve/CVE-2016-5338
suse.com/security/cve/CVE-2016-6258
suse.com/security/cve/CVE-2016-6259
suse.com/security/cve/CVE-2016-6351
suse.com/security/cve/CVE-2016-7092
suse.com/security/cve/CVE-2016-7093
suse.com/security/cve/CVE-2016-7094
suse.com/security/cve/CVE-2008-0928
suse.com/security/cve/CVE-2008-1945
suse.com/security/cve/CVE-2008-2382
suse.com/security/cve/CVE-2008-4539
suse.com/security/cve/CVE-2012-3515
suse.com/security/cve/CVE-2013-4148
suse.com/security/cve/CVE-2013-4149
suse.com/security/cve/CVE-2013-4150
suse.com/security/cve/CVE-2013-4151
suse.com/security/cve/CVE-2013-4526
suse.com/security/cve/CVE-2013-4527
suse.com/security/cve/CVE-2013-4529
suse.com/security/cve/CVE-2013-4530
suse.com/security/cve/CVE-2013-4531
suse.com/security/cve/CVE-2013-4535
suse.com/security/cve/CVE-2013-4536
suse.com/security/cve/CVE-2013-4541
suse.com/security/cve/CVE-2013-4542
suse.com/security/cve/CVE-2013-4544
suse.com/security/cve/CVE-2013-6399
suse.com/security/cve/CVE-2014-0142
Left out here: 20 references. The JSON record has them.