{"id":"CVE-2026-52959","published":"2026-06-24T16:28:40Z","modified":"2026-08-05T12:32:09Z","title":"virt: sev-guest: Do not use host-controlled page order in cleanup path","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirt: sev-guest: Do not use host-controlled page order in cleanup path\n\nWhen issuing an extended guest request (SVM_VMGEXIT_EXT_GUEST_REQUEST),\nget_ext_report() allocates a buffer to retrieve a certificate blob from the\nhost, keeping track of its size in report_req->certs_len.\n\nHowever, the host may return SNP_GUEST_VMM_ERR_INVALID_LEN, indicating\nan invalid buffer size, as well as the expected length of such buffer.\nget_ext_report() subsequently updates report_req->certs_len with the\nhost-controlled value, and cleans up the buffer by computing a page order\nfrom such value. This is incorrect, as the host-provided length may not\nmatch the page order of the original allocation, potentially resulting\nin corruption in the page allocator.\n\nFix this by using alloc_pages_exact() instead, and reusing @npages to\ncompute the size passed to free_pages_exact(). For consistency, also\nuse @npages to compute the size when allocating the pages, even though\nthis last change has no functional effect.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00113,"percentile":0.0141,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3f6fb0211b39aaa1b841260681dd02ca6b693ed5","tags":[]},{"url":"https://git.kernel.org/stable/c/9e48b4f813d2c3db75d522aa82ab705ce04b7e2d","tags":[]},{"url":"https://git.kernel.org/stable/c/23e6a1ca04ae44806439a5a446e62e4d42e80bb4","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":0.28},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < 3f6fb0211b39aaa1b841260681dd02ca6b693ed5",">= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < 9e48b4f813d2c3db75d522aa82ab705ce04b7e2d",">= 3e385c0d6ce88ac9916dcf84267bd5855d830748, < 23e6a1ca04ae44806439a5a446e62e4d42e80bb4","0b16521f95c875e79d657cb8d6911c15080dbb80",">= 6.13.8, < 6.14"]},{"vendor":"Linux","product":"Linux","versions":["6.14"]}],"euvd":{"id":"EUVD-2026-38827","exploited":false,"provenance":"source"}}