{"id":"CVE-2026-143185","state":"PUBLISHED","title":"Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nXen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()\n\nBoth decrease-reservation and populate-physmap can succeed partially. For\nthe former this may be pretty unlikely, but clearly the latter can hit\nboth out-of-memory conditions in the hypervisor or denial because of the\nallocation exceeding the domain's allowance (there's no interaction with\nthe balloon driver here either).\n\nIn gnttab_dma_free_pages() we simply can't give back to the system what\nhasn't been re-filled with backing memory. For gnttab_dma_alloc_pages()\nboth parts of the overall region need dealing with differently.\n\nWhile no present caller of gnttab_dma_free_pages() checks its return\nvalue, also don't use -EFAULT there: It really is an out-of-memory\ncondition. (In gnttab_dma_alloc_pages() -EFAULT doesn't look quite right\neither, but I couldn't think of a clearly better error code there.)","publishedAt":"2026-12-03T09:20:16.025Z","updatedAt":"2026-12-03T09:20:16.025Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"b698e22b3db1ea263db29ab32ca14a134cfa2bb0","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"de3a48f4db7610aa5df8e08838285317f4b40c82","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"fa60c9c122aafc06dff48f451ad550630587a0bb","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/xen/grant-table.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/xen/grant-table.c"]}],"references":["https://git.kernel.org/stable/c/b698e22b3db1ea263db29ab32ca14a134cfa2bb0","https://git.kernel.org/stable/c/de3a48f4db7610aa5df8e08838285317f4b40c82","https://git.kernel.org/stable/c/4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205","https://git.kernel.org/stable/c/fa60c9c122aafc06dff48f451ad550630587a0bb","https://git.kernel.org/stable/c/8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220","https://git.kernel.org/stable/c/2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143185.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143185","state":"PUBLISHED","datePublished":"2026-12-03T09:20:16.025Z","dateUpdated":"2026-12-03T09:20:16.025Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.358Z"},"containers":{"cna":{"title":"Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nXen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()\n\nBoth decrease-reservation and populate-physmap can succeed partially. For\nthe former this may be pretty unlikely, but clearly the latter can hit\nboth out-of-memory conditions in the hypervisor or denial because of the\nallocation exceeding the domain's allowance (there's no interaction with\nthe balloon driver here either).\n\nIn gnttab_dma_free_pages() we simply can't give back to the system what\nhasn't been re-filled with backing memory. For gnttab_dma_alloc_pages()\nboth parts of the overall region need dealing with differently.\n\nWhile no present caller of gnttab_dma_free_pages() checks its return\nvalue, also don't use -EFAULT there: It really is an out-of-memory\ncondition. (In gnttab_dma_alloc_pages() -EFAULT doesn't look quite right\neither, but I couldn't think of a clearly better error code there.)"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"b698e22b3db1ea263db29ab32ca14a134cfa2bb0","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"de3a48f4db7610aa5df8e08838285317f4b40c82","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"fa60c9c122aafc06dff48f451ad550630587a0bb","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220","versionType":"git"},{"version":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68","status":"affected","lessThan":"2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/xen/grant-table.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/xen/grant-table.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b698e22b3db1ea263db29ab32ca14a134cfa2bb0"},{"url":"https://git.kernel.org/stable/c/de3a48f4db7610aa5df8e08838285317f4b40c82"},{"url":"https://git.kernel.org/stable/c/4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205"},{"url":"https://git.kernel.org/stable/c/fa60c9c122aafc06dff48f451ad550630587a0bb"},{"url":"https://git.kernel.org/stable/c/8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220"},{"url":"https://git.kernel.org/stable/c/2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:16.025Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}