CVE-2021-32846: HyperKit - Use After Free
- Cve: CVE-2021-32846
- Name: HyperKit - Use After Free
- Description: HyperKit is a toolkit for embedding hypervisor capabilities in an application. In versions 0.20210107, function `pci_vtsock_proc_tx` in `virtio-sock` can lead to to uninitialized memory use. In this situation, there is a check for the return value to be less or equal to `VTSOCK_MAXSEGS`, but that check is not sufficient because the function can return `-1` if it finds an error it cannot recover from. Moreover, the negative return value will be used by `iovec_pull` in a while condition that can further lead to more corruption because the function is not designed to handle a negative `iov_len`. 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 af5eba2360a7351c08dfd9767d9be863a50ebaba.
- Impact: Attackers can cause guest crashes leading to denial of service or memory corruption on the host system.
- Remediation: Update to version containing commit af5eba2360a7351c08dfd9767d9be863a50ebaba or later.
- 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.00317
- Epss percentile: 0.24886
- Assignee: [email protected]
- Published at: 2023-02-17T23:15:12Z
- 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-32846
- 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-754 | Improper Check for Unusual or Exceptional Conditions |
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