{"api_version":"1","generated_at":"2026-06-27T17:10:07+00:00","cve":"CVE-2026-52959","urls":{"html":"https://cve.report/CVE-2026-52959","api":"https://cve.report/api/cve/CVE-2026-52959.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-52959","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-52959"},"summary":{"title":"virt: sev-guest: Do not use host-controlled page order in cleanup path","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-06-24 17:17:06","updated_at":"2026-06-24 17:17:06"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3f6fb0211b39aaa1b841260681dd02ca6b693ed5","name":"https://git.kernel.org/stable/c/3f6fb0211b39aaa1b841260681dd02ca6b693ed5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/23e6a1ca04ae44806439a5a446e62e4d42e80bb4","name":"https://git.kernel.org/stable/c/23e6a1ca04ae44806439a5a446e62e4d42e80bb4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9e48b4f813d2c3db75d522aa82ab705ce04b7e2d","name":"https://git.kernel.org/stable/c/9e48b4f813d2c3db75d522aa82ab705ce04b7e2d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-52959","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52959","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e385c0d6ce88ac9916dcf84267bd5855d830748 3f6fb0211b39aaa1b841260681dd02ca6b693ed5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e385c0d6ce88ac9916dcf84267bd5855d830748 9e48b4f813d2c3db75d522aa82ab705ce04b7e2d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3e385c0d6ce88ac9916dcf84267bd5855d830748 23e6a1ca04ae44806439a5a446e62e4d42e80bb4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0b16521f95c875e79d657cb8d6911c15080dbb80 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.13.8 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.33 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0.10 7.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"52959","cve":"CVE-2026-52959","epss":"0.001150000","percentile":"0.018490000","score_date":"2026-06-26","updated_at":"2026-06-27 00:07:47"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/virt/coco/sev-guest/sev-guest.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3f6fb0211b39aaa1b841260681dd02ca6b693ed5","status":"affected","version":"3e385c0d6ce88ac9916dcf84267bd5855d830748","versionType":"git"},{"lessThan":"9e48b4f813d2c3db75d522aa82ab705ce04b7e2d","status":"affected","version":"3e385c0d6ce88ac9916dcf84267bd5855d830748","versionType":"git"},{"lessThan":"23e6a1ca04ae44806439a5a446e62e4d42e80bb4","status":"affected","version":"3e385c0d6ce88ac9916dcf84267bd5855d830748","versionType":"git"},{"status":"affected","version":"0b16521f95c875e79d657cb8d6911c15080dbb80","versionType":"git"},{"lessThan":"6.14","status":"affected","version":"6.13.8","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/virt/coco/sev-guest/sev-guest.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.14"},{"lessThan":"6.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.33","versionType":"semver"},{"lessThanOrEqual":"7.0.*","status":"unaffected","version":"7.0.10","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.33","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.0.10","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.1","versionStartIncluding":"6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-06-24T16:28:40.391Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3f6fb0211b39aaa1b841260681dd02ca6b693ed5"},{"url":"https://git.kernel.org/stable/c/9e48b4f813d2c3db75d522aa82ab705ce04b7e2d"},{"url":"https://git.kernel.org/stable/c/23e6a1ca04ae44806439a5a446e62e4d42e80bb4"}],"title":"virt: sev-guest: Do not use host-controlled page order in cleanup path","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-52959","datePublished":"2026-06-24T16:28:40.391Z","dateReserved":"2026-06-09T07:44:35.373Z","dateUpdated":"2026-06-24T16:28:40.391Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-06-24 17:17:06","lastModifiedDate":"2026-06-24 17:17:06","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"52959","Ordinal":"1","Title":"virt: sev-guest: Do not use host-controlled page order in cleanu","CVE":"CVE-2026-52959","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"52959","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"virt: sev-guest: Do not use host-controlled page order in cleanu"}]}}}