CVE-2021-32846
published high CVSS 3.1 · 7.7Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| moby | — | hyperkit0.20210107 through 0.20210107 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| moby | hyperkit | 0.20210107 through 0.20210107 (affected · custom) | GitHub_M · cna |
Weaknesses
1- CWE-908 CWE-908 Use of Uninitialized Resource
References
3Provider assertions
3GitHub_M · cna
Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d7dbc0c0afca8919cb012e31c9c3280fcf6e95d9fbbf0da8ebaaa50f1b667658
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record