{"id":"CVE-2021-32845","url":"https://www.cyber-defence.io/tools/cve/CVE-2021-32845","generatedAt":"2026-10-27T22:31:49.404Z","title":"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.","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.","published":"2023-02-17T23:15:12.000Z","lastModified":"2026-06-17T03:53:45.000Z","status":"Modified","sourceIdentifier":"security-advisories@github.com","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-908","CWE-252"],"affected":["mobyproject/hyperkit"],"epss":{"score":0.0025,"percentile":0.16203,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.25%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://github.com/moby/hyperkit/pull/313","tags":["Patch"],"source":"security-advisories@github.com"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","tags":["Third Party Advisory"],"source":"security-advisories@github.com"},{"url":"https://github.com/moby/hyperkit/commit/41272a980197917df8e58ff90642d14dec8fe948","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/moby/hyperkit/pull/313","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32845","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}