Qemu: Use of Uninitialized Resource
CVE-2022-35414 is a high-severity use of uninitialized resource vulnerability in Qemu, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. Affected Qemu versions: 4.1.50 through 7.0.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.66% chance of exploitation within 30 days, higher than 52% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of Qemu you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on qemu.org for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| QEMU | Qemu | 4.1.50 through 7.0.0 | Not stated |
| Debian | Debian Linux | 10.0 | Not stated |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 8.8 | High | NVD |
| CVSS 2.0 | 6.1 | Medium | NVD |
Official description
softmmu/physmem.c in QEMU through 7.0.0 can perform an uninitialized read on the translate_fail path, leading to an io_readx or io_writex crash. NOTE: a third party states that the Non-virtualization Use Case in the qemu.org reference applies here, i.e., "Bugs affecting the non-virtualization use case are not considered security bugs at this time.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Uninitialized Resource
The product uses or accesses a resource that has not been initialized.
How developers prevent this class of flaw
- Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
- Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
- Avoid race conditions (CWE-362) during initialization routines.
More Use of Uninitialized Resource vulnerabilities (CWE-908)
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/qemu/qemu/blob/f200ff158d5abcb974a6b597a962b6b2fbea2b06/softmmu/physmem.cThird Party Advisory
- github.com/qemu/qemu/blob/v7.0.0/include/exec/cpu-all.h#L145-L148Release Notes, Third Party Advisory
- github.com/qemu/qemu/commit/3517fb726741c109cae7995f9ea46f0cab6187d6#diff-83c563ed6330dc5d49876f1116e7518b5c1…Third Party Advisory
- github.com/qemu/qemu/commit/3517fb726741c109cae7995f9ea46f0cab6187d6#diff-83c563ed6330dc5d49876f1116e7518b5c1…Third Party Advisory
- github.com/qemu/qemu/commit/418ade7849ce7641c0f7333718caf5091a02fd4cThird Party Advisory
- gitlab.com/qemu-project/qemu/-/issues/1065Issue Tracking, Mitigation, Third Party Advisory
- sick.codes/sick-2022-113Exploit, Third Party Advisory
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2022/09/msg00008.htmlMailing List, Third Party Advisory
Other references
Other vulnerabilities in Qemu
- 7.8 High severity
- 8.8 High severity
- 7.1 High severity
- 7.0 High severity
- 8.2 High severity
- 10.0 Critical severity
Recent Use of Uninitialized Resource vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 8.8 High severity
- 8.8 High severity
Spotted an error? Tell us.