Input validation error in QEMU - CVE-2012-2652

 

Input validation error in QEMU - CVE-2012-2652

Published: August 7, 2012 / Updated: August 4, 2020


Vulnerability identifier: #VU33933
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-2652
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

QEMU
Debian Linux
Ubuntu
qemu (Alpine package)
qemu-kvm (Ubuntu package)
qemu (Debian package)
qemu-kvm (Debian package)

How to mitigate CVE-2012-2652

Install update from vendor's website.

QEMU - update to 1.0.1
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

Related Security Bulletins