CVE-2021-32845: HyperKit - Use After Free
- Cve: CVE-2021-32845
- Name: HyperKit - Use After Free
- Description: HyperKit is a toolkit for embedding hypervisor capabilities in an application. In versions 0.20210107 and prior of HyperKit, the implementation of `qnotify` at `pci_vtrnd_notify` fails to check the return value of `vq_getchain`. This leads to `struct iovec iov;` being uninitialized and used to read memory in `len = (int) read(sc->vrsc_fd, iov.iov_base, iov.iov_len);` when an attacker is able to make `vq_getchain` fail. This issue may lead to a guest crashing the host causing a denial of service and, under certain circumstance, memory corruption. This issue is fixed in commit 41272a980197917df8e58ff90642d14dec8fe948.
- Impact: Attackers can cause guest crashes leading to denial of service or memory corruption, potentially affecting host stability.
- Remediation: Update to commit 41272a980197917df8e58ff90642d14dec8fe948 or later versions.
- Vulnerability type: use_after_free
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0025
- Epss percentile: 0.1646
- Assignee: [email protected]
- Published at: 2023-02-17T23:15:11Z
- Age in days: 1376
- Modified at: 2026-06-17T03:53:44Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32845
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-908 | Use of Uninitialized Resource |
| CWE-252 | Unchecked Return Value |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| mobyproject:hyperkit | <= 0.20210107 | no | nvd | /v1/products/mobyproject/hyperkit |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| moby/hyperkit | commit, fix, pull | yes | /v1/repositories/moby/hyperkit |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts