AZL-118289: CVE-2026-143185 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
Xen/gnttab: improve error handling in gnttabdma{alloc,free}pages()
Both decrease-reservation and populate-physmap can succeed partially. For the former this may be pretty unlikely, but clearly the latter can hit both out-of-memory conditions in the hypervisor or denial because of the allocation exceeding the domain's allowance (there's no interaction with the balloon driver here either).
In gnttabdmafreepages() we simply can't give back to the system what hasn't been re-filled with backing memory. For gnttabdmaallocpages() both parts of the overall region need dealing with differently.
While no present caller of gnttabdmafreepages() checks its return value, also don't use -EFAULT there: It really is an out-of-memory condition. (In gnttabdmaallocpages() -EFAULT doesn't look quite right either, but I couldn't think of a clearly better error code there.)
Affected Software
Event History
Frequently Asked Questions
What conditions can trigger the faulty error-handling paths?
The paths can be reached when decrease-reservation or populate-physmap operations succeed only partially. Populate-physmap may do so when the hypervisor is out of memory or when an allocation exceeds the domain's allowance.
Does this involve the balloon driver?
No. The described allocation-limit condition has no interaction with the balloon driver.
Why can a partial failure be problematic during page freeing?
The system cannot return pages that were not re-filled with backing memory. The fix distinguishes the portions of a partially handled region and treats the condition as an out-of-memory situation rather than using -EFAULT.