{"id":"CVE-2026-143185","summary":"Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()","details":"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.)","modified":"2026-12-03T11:01:31.650708800Z","published":"2026-12-03T09:20:16.025Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143185.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b698e22b3db1ea263db29ab32ca14a134cfa2bb0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de3a48f4db7610aa5df8e08838285317f4b40c82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa60c9c122aafc06dff48f451ad550630587a0bb"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143185.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143185"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9bdc7304f536f3f77f0a69e7c3a8f5afda561a68"},{"fixed":"b698e22b3db1ea263db29ab32ca14a134cfa2bb0"},{"fixed":"de3a48f4db7610aa5df8e08838285317f4b40c82"},{"fixed":"4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205"},{"fixed":"fa60c9c122aafc06dff48f451ad550630587a0bb"},{"fixed":"8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220"},{"fixed":"2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143185.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143185.json"}}],"schema_version":"1.9.2"}