SecurityContext

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

IdName
CWE-908Use of Uninitialized Resource
CWE-252Unchecked Return Value

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948Patch
https://github.com/moby/hyperkit/pull/313Patch
https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
mobyproject:hyperkit<= 0.20210107nonvd/v1/products/mobyproject/hyperkit

Projects

RepositoryLink kindsIndexedUrl
moby/hyperkitcommit, fix, pullyes/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