CVE-2021-32845
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in. High risk of data tampering, service disruption.
- Exploit odds
- 0.2% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.2% in the next 30 days (EPSS).
- Severity: 7.7 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.2% · EPSS, next 30 days
- Weakness
- CWE-908
- Record status
- Modified
Affected
- Mobyproject Hyperkit ≤ 0.20210107
Attack profile CVSS 3.1 · 7.7
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-32845.md and follow it. Check whether this project is affected by CVE-2021-32845. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948
- https://github.com/moby/hyperkit/pull/313
- https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948
- https://github.com/moby/hyperkit/pull/313
References
- https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948
- https://github.com/moby/hyperkit/pull/313
- https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/
- https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948
- https://github.com/moby/hyperkit/pull/313
- https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/