{"api_version":"1","generated_at":"2026-04-23T03:25:53+00:00","cve":"CVE-2021-32846","urls":{"html":"https://cve.report/CVE-2021-32846","api":"https://cve.report/api/cve/CVE-2021-32846.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32846","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32846"},"summary":{"title":"CVE-2021-32846","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-02-17 23:15:00","updated_at":"2023-06-26 17:47:00"},"problem_types":["CWE-754"],"metrics":[],"references":[{"url":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","name":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","refsource":"MISC","tags":[],"title":"Fix virtio-sock pci_vtsock_proc_tx uninitialized memory use (GHSL-202… · moby/hyperkit@af5eba2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/moby/hyperkit/pull/313","name":"https://github.com/moby/hyperkit/pull/313","refsource":"MISC","tags":[],"title":"Various fixes by fredericdalleau · Pull Request #313 · moby/hyperkit · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","name":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","refsource":"CONFIRM","tags":[],"title":"GHSL-2021-054_057: Code execution outside the virtualized guest in hyperkit - CVE-2021-32843, CVE-2021-32844, CVE-2021-32845, CVE-2021-32846 | GitHub Security Lab","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32846","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32846","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32846","vulnerable":"1","versionEndIncluding":"0.20210107","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"mobyproject","cpe5":"hyperkit","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32846","STATE":"PUBLIC","TITLE":"Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hyperkit","version":{"version_data":[{"version_affected":"<=","version_name":"0.20210107","version_value":"0.20210107"}]}}]},"vendor_name":"moby"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-908 Use of Uninitialized Resource"}]}]},"references":{"reference_data":[{"name":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/","refsource":"CONFIRM","url":"https://securitylab.github.com/advisories/GHSL-2021-054_057-moby-hyperkit/"},{"name":"https://github.com/moby/hyperkit/pull/313","refsource":"MISC","url":"https://github.com/moby/hyperkit/pull/313"},{"name":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba","refsource":"MISC","url":"https://github.com/moby/hyperkit/commit/af5eba2360a7351c08dfd9767d9be863a50ebaba"}]},"source":{"advisory":"GHSL-2021-057","defect":["GHSL-2021-057"],"discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2023-02-17 23:15:00","lastModifiedDate":"2023-06-26 17:47:00","problem_types":["CWE-754"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:mobyproject:hyperkit:*:*:*:*:*:*:*:*","versionEndIncluding":"0.20210107","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32846","Ordinal":"208234","Title":"CVE-2021-32846","CVE":"CVE-2021-32846","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32846","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}