{"schemaVersion":3,"id":"CVE-2021-32846","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-02-17T00:00:00.000Z","modified":"2025-03-10T21:09:47.105Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00317,"percentile":0.232,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00317},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00317,"percentile":0.232}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00317,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00317,"percentile":0.232}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-908","name":"Use of Uninitialized Resource","description":"The product uses or accesses a resource that has not been initialized.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/908.html"},{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions","description":"The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/754.html"}],"affected":[{"vendor":"moby","product":"hyperkit","name":"hyperkit","label":"hyperkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.20210107","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.20210107","eol":null,"hubHref":"/vendor/moby/hyperkit"},{"vendor":"mobyproject","product":"hyperkit","name":"hyperkit","label":"hyperkit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.20210107","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.20210107","eol":null,"hubHref":"/vendor/mobyproject/hyperkit"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","label":"securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","hostname":"securitylab.github.com","tags":["Third Party Advisory"]},{"url":"https://github.com/moby/hyperkit/pull/313","label":"github.com/moby/hyperkit/pull/313","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","label":"github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-02-17T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-10T21:09:47.105Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:21:30.594Z","stale":false,"partial":false}}