Input validation error in QEMU - CVE-2012-2652
Published: August 7, 2012 / Updated: August 4, 2020
Vulnerability details
The vulnerability allows a remote non-authenticated attacker to read and manipulate data.
The bdrv_open function in Qemu 1.0 does not properly handle the failure of the mkstemp function, when in snapshot node, which allows local users to overwrite or read arbitrary files via a symlink attack on an unspecified temporary file.
Affected software
Debian Linux
Ubuntu
qemu (Alpine package)
qemu-kvm (Ubuntu package)
qemu (Debian package)
qemu-kvm (Debian package)
How to mitigate CVE-2012-2652
qemu (Alpine package) - update to 1.0.1-r3
qemu-kvm (Ubuntu package) - addressed in versions 0.12.3+noroms-0ubuntu9.19, 0.14.0+noroms-0ubuntu4.6, 0.14.1+noroms-0ubuntu6.4, 1.0+noroms-0ubuntu14.1
qemu (Debian package) - update to 0.12.5+dfsg-3squeeze2
qemu-kvm (Debian package) - update to 0.12.5+dfsg-5+squeeze9
External References
- http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=eba25057b9a5e19d10ace2bc7716667a31297169
- http://git.qemu.org/?p=qemu-stable-0.15.git;a=log
- http://lists.opensuse.org/opensuse-security-announce/2012-09/msg00024.html
- http://secunia.com/advisories/50132
- http://secunia.com/advisories/50689
- http://www.debian.org/security/2012/dsa-2545
- http://www.securityfocus.com/bid/53725
- http://www.ubuntu.com/usn/USN-1522-1