Description
In the Linux kernel, the following vulnerability has been resolved: Xen/gnttab: improve error handling in gnttab_dma_{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 gnttab_dma_free_pages() we simply can't give back to the system what hasn't been re-filled with backing memory. For gnttab_dma_alloc_pages() both parts of the overall region need dealing with differently. While no present caller of gnttab_dma_free_pages() checks its return value, also don't use -EFAULT there: It really is an out-of-memory condition. (In gnttab_dma_alloc_pages() -EFAULT doesn't look quite right either, but I couldn't think of a clearly better error code there.)
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < b698e22b3db1ea263db29ab32ca14a134cfa2bb0affected9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < de3a48f4db7610aa5df8e08838285317f4b40c82affected9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < 4e2ce0ed4032aeb7b6f8c6b75b48bca537ed8205affected9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < fa60c9c122aafc06dff48f451ad550630587a0bbaffected9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < 8cf0bde5988c8a5550dbfaf2959cf60ddd4a2220affected9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 to < 2b66f2cc753243a6adb3e9a5c038b0fc59ba7ec9affected
Linux Linux
Default version status: affected
4.19affected0 to < 4.19unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
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 ↗