В ядре Linux была устранена следующая уязвимость: KVM: guest_memfd: Establish memslot<=>guest_memfd bindings *after* memslot готов Wait для связывания мемслота с экземпляром guest_memfd до тех пор, пока *after* мемслот не будет полностью подготовлен, так как создание связывания в guest_memfd эффективно откроет мемслот читателям. Как указано в Sashiko, связывание мемслота до того, как он будет готов к воздействию остального мира, может нарушить различные предположения и правила мемслотов. Например, x86 мог наблюдать указатель rmap NULL, если PUNCH_HOLE попал в guest_memfd после создания привязки, но до того, как KVM сделал это через kvm_prepare_memory_region().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: KVM: guest_memfd: Establish memslot<=>guest_memfd bindings *after* memslot is ready Wait to bind a memslot to a guest_memfd instance until *after* the memslot is fully prepared, as creating the binding in guest_memfd will effectively expose the memslot to readers. As pointed out by Sashiko, binding the memslot before it's ready to be exposed to the rest of the world can break various memslot assumption and rules. E.g. x86 could observe a NULL rmap pointer if a PUNCH_HOLE hit the guest_memfd after the binding was created, but before KVM made it through kvm_prepare_memory_region().