CVE-2012-2652
published 2012-08-07CVE-2012-2652: 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…
PriorityP415medium4.4CVSS 2.0
AVLACMAuNCPIPAP
EPSS
0.34%
26.9th percentile
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
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | qemu | < qemu 1.1.0+dfsg-1 (bookworm) | qemu 1.1.0+dfsg-1 (bookworm) |
| qemu | qemu | — | — |
| qemu | qemu | >= 0 < 1.1.0+dfsg-1 | 1.1.0+dfsg-1 |
| qemu | qemu | >= 0 < 1.1.0+dfsg-1 | 1.1.0+dfsg-1 |
| qemu | qemu | >= 0 < 1.1.0+dfsg-1 | 1.1.0+dfsg-1 |
| qemu | qemu | >= 0 < 1.1.0+dfsg-1 | 1.1.0+dfsg-1 |
CVSS provenance
nvdv2.04.4MEDIUMAV:L/AC:M/Au:N/C:P/I:P/A:P
osv4.4MEDIUM
vendor_debian4.4MEDIUM
vendor_redhat4.4MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-47rg-xchh-xj5g: The bdrv_open function in Qemu 1
ghsa_unreviewed·2022-05-17
CVE-2012-2652 [MEDIUM] GHSA-47rg-xchh-xj5g: The bdrv_open function in Qemu 1
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.
OSV
CVE-2012-2652: The bdrv_open function in Qemu 1
osv·2012-08-07·CVSS 4.4
CVE-2012-2652 [MEDIUM] CVE-2012-2652: The bdrv_open function in Qemu 1
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.
Ubuntu
QEMU vulnerability
vendor_ubuntu·2012-08-02
CVE-2012-2652 QEMU vulnerability
Title: QEMU vulnerability
Summary: QEMU could be made to overwrite files as the administrator, or expose
sensitive information.
It was discovered that QEMU incorrectly handled temporary files when
creating a snapshot. A local attacker could use this flaw to possibly
overwrite files with root privilege, or obtain sensitive information from
the guest.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
qemu: vulnerable to temporary file symlink attacks
vendor_redhat·2012-05-28·CVSS 4.4
CVE-2012-2652 [MEDIUM] CWE-367 qemu: vulnerable to temporary file symlink attacks
qemu: vulnerable to temporary file symlink attacks
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.
Package: kvm (Red Hat Enterprise Linux 5) - Affected
Package: qemu-kvm (Red Hat Enterprise Linux 6) - Affected
Package: qemu-kvm (Red Hat Enterprise Linux Extended Update Support 6.3) - Affected
Debian
CVE-2012-2652: qemu - The bdrv_open function in Qemu 1.0 does not properly handle the failure of the m...
vendor_debian·2012·CVSS 4.4
CVE-2012-2652 [MEDIUM] CVE-2012-2652: qemu - The bdrv_open function in Qemu 1.0 does not properly handle the failure of the m...
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.
Scope: local
bookworm: resolved (fixed in 1.1.0+dfsg-1)
bullseye: resolved (fixed in 1.1.0+dfsg-1)
forky: resolved (fixed in 1.1.0+dfsg-1)
sid: resolved (fixed in 1.1.0+dfsg-1)
trixie: resolved (fixed in 1.1.0+dfsg-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks [fedora-all]
bugzilla·2012-05-28·CVSS 4.4
CVE-2012-2652 [MEDIUM] CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks [fedora-all]
CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected Fedora
versions.
For comments that are specific to the vulnerability please use bugs filed
against "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please include this bug ID and the
bug IDs of this bug's parent bugs filed against the "Security Response"
product (the top-level CVE bugs). Please mention the CVE IDs being fixed
in the RPM changelog when available.
Bodhi update submission link:
https://admin.fedoraproject.org/updates/new/?type_=securi
Bugzilla
CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks
bugzilla·2012-05-24·CVSS 4.4
CVE-2012-2652 [MEDIUM] CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks
CVE-2012-2652 qemu: vulnerable to temporary file symlink attacks
A flaw was found in how qemu, in snapshot mode (-snapshot command line argument), handled the creation and opening of the temporary file used to store the difference of the virtualized guest's read-only image and the current state. In snapshot mode, bdrv_open() creates an empty temporary file without checking for any mkstemp() or close() failures; it also ignores the possibility of a buffer overrun given an exceptionally long $TMPDIR. Because qemu re-opens that file after creation, it is possible to race qemu and insert a symbolic link with the same expected name as the temporary file, pointing to an attacker-chosen file. This can be used to either overwrite the destination file with the privileges of the user running qemu (
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git%3Ba=commit%3Bh=eba25057b9a5e19d10ace2bc7716667a31297169http://git.qemu.org/?p=qemu-stable-0.15.git%3Ba=loghttp://lists.opensuse.org/opensuse-security-announce/2012-09/msg00024.htmlhttp://secunia.com/advisories/50132http://secunia.com/advisories/50689http://www.debian.org/security/2012/dsa-2545http://www.securityfocus.com/bid/53725http://www.ubuntu.com/usn/USN-1522-1http://git.kernel.org/?p=virt/kvm/qemu-kvm.git%3Ba=commit%3Bh=eba25057b9a5e19d10ace2bc7716667a31297169http://git.qemu.org/?p=qemu-stable-0.15.git%3Ba=loghttp://lists.opensuse.org/opensuse-security-announce/2012-09/msg00024.htmlhttp://secunia.com/advisories/50132http://secunia.com/advisories/50689http://www.debian.org/security/2012/dsa-2545http://www.securityfocus.com/bid/53725http://www.ubuntu.com/usn/USN-1522-1
2012-08-07
Published