Ad

CVE-2026-99120

NONE EPSS 0.21%
Обновлено 28 октября 2026
AMD
Параметр Значение
Поставщик AMD
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: KVM: x86/mmu: Cope с битом SS, установленным в NPF exit codes When под управлением Hyper-V из Windows 11, KVM видит бит SS, установленный во вложенных кодах ошибок страницы, производимых для теневого NPT. В руководстве AMD неясно, когда установлен SS, в том числе может ли он быть установлен, когда SupervisorShadowStackEn (бит 6) не установлен в поле MISC_CTL VMCB. Тем не менее, неожиданный бит SS вызывает доступы вне границ в permission_fault (), рассматриваемый как WARNs или UBSAN сообщает: ядро: UBSAN: array-index-out-of-bounds в ядре arch/x86/kvm/mmu.h:225:27: индекс 34 находится вне диапазона для типа u16 [16] (в этом случае код ошибки страницы 34 * 2 0 x 44, то есть.

SSU; отчет показывает, что SSUW также происходит). Исправьте обработку неизвестных кодов ошибок, сбросив SS и (с помощью WARN) любые биты, которые не входят в число тех, которые permission_fault () ожидает получить. В то же время, учитывая неопределенность относительно того, когда аппаратные наборы SS, следуйте за поведением процессора при построении кода ошибки ошибки и сохраните бит SS, переданный FNAME(walk_addr_generic).

В то время как поведение удивительно, есть вероятность, что Hyper-V ожидает его (Hyper-V даже не включает CET, если он не найдет MBEC / GMET!), поэтому сохраняйте информацию при отражении неисправности в L1, а не безоговорочно отбрасывайте ее. Bisection показывает, что это началось с commit 687ee95c1b6d ("KVM: nSVM: включить GMET для гостей), хотя SHSTK был доступен для гостей с Linux 6.18. Однако это не потому, что бит 1 MISC_CTL (GMET каким-то образом позволяет сообщать о бите SS; скорее, Hyper-V никогда не использует CET, если GMET также не присутствует. WARN воспроизводим даже с gmet0, с некоторым взломом теста cet.c от kvm-unit-tests, чтобы гарантировать, что первый доступ к теневому стеку вызывает ошибку страницы.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: KVM: x86/mmu: Cope with the SS bit being set in #NPF exit codes When running Hyper-V from Windows 11, KVM is seeing the SS bit set in nested page fault error codes produced for shadowed NPT. The AMD manual is unclear about when SS is set, including whether it can be set when SupervisorShadowStackEn (bit 6) is not set in the MISC_CTL field of the VMCB. Nevertheless, the unexpected SS bit causes out of bounds accesses in permission_fault(), seen as either WARNs or UBSAN reports: kernel: UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu.h:225:27 kernel: index 34 is out of range for type 'u16 [16]' (in this case, the page fault error code is 34*2=0x44, i.e. SS|U; the report shows SS|U|W happening as well). Fix the handling of unknown error codes by dropping SS and (with a WARN) any bits not among those that permission_fault() expects to receive. At the same time, given the uncertainty about when hardware sets SS, follow the processor's behavior when constructing the fault's error code, and preserve the SS bit as passed to FNAME(walk_addr_generic). While the behavior is surprising, there's a possibility that Hyper-V expects it (Hyper-V does not even enable CET unless it finds MBEC/GMET!), so retain the information when reflecting the fault to L1 instead of unconditionally discarding it. Bisection shows that this started happening with commit 687ee95c1b6d ("KVM: nSVM: enable GMET for guests"), even though SHSTK was available to guests since Linux 6.18. However, this is not because bit 1 of MISC_CTL (GMET) somehow enables reporting the SS bit; rather, it's simply that Hyper-V never uses CET unless GMET is also present. The WARN is reproducible even with gmet=0, with some hacking of kvm-unit-tests's cet.c testcase to ensure that the first access to the shadow stack triggers a page fault.