{"id":"CVE-2021-32846","aliases":["CVE-2021-32846"],"related":[],"kind":"vulnerability","state":"published","title":"Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2023-02-17T00:00:00.000Z","modified":"2026-06-17T03:53:44.990Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-754","CWE-908"],"affected":[{"ranges":[{"type":"custom","introduced":"0.20210107","lastAffected":"0.20210107","status":"affected"}],"vendor":"moby","product":"hyperkit","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.20210107"}],"vendor":"mobyproject","product":"hyperkit","cpe":"cpe:2.3:a:mobyproject:hyperkit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moby/hyperkit/pull/313","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T20:57:20.315Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32846","url":"https://www.cve.org/CVERecord?id=CVE-2021-32846","licence":"CVE Terms of Use","modified":"2025-03-10T21:09:47.105Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32846","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32846","licence":"Public domain","modified":"2026-06-17T03:53:44.990Z"}],"updatedAt":"2026-11-25T22:58:08.226Z","epss":{"score":0.00326,"percentile":0.27735,"date":"2026-12-01T12:00:22.000Z"}}