В ядре Linux была устранена следующая уязвимость: KVM: arm64: nv: Delay освобождает теневые структуры S2 до разрушения VM We освобождает теневые структуры S2 от kvm_arch_flush_shadow_all(), что является Bad Idea(tm). Освобождение таблиц страниц является честной игрой (это то, для чего предназначен этот обратный звонок), но освобождение контейнера, на который все еще можно ссылаться в другой части системы, не является большим. Вместо этого выращивайте отдельные деструкторы, которые вызываются, когда мы разрушаем VM навсегда.
Оттуда мы можем уничтожить как отдельный MMUs, так и глобальный массив, который указывает на них, в безопасности, зная, что сами vcpus уже уничтожены.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction We free the shadow S2 structures from kvm_arch_flush_shadow_all(), which is a Bad Idea(tm). Freeing the page tables is fair game (this is what this callback is for), but freeing the container that could still be referenced by another part of the system is not great. Instead, grow separate destructors that gets called when we tear the VM down for good. From there, we can nuke both the individual MMUs as well as the global array that points to them, safe in the knowledge that the vcpus themselves have been destroyed already.
Характеристики атаки
Последствия
Строка CVSS v3.1