В ядре Linux устранена следующая уязвимость:
x86/vmware: исправление сбоев гипервызовов. Fedora QA сообщила о следующей панике:
ОШИБКА: невозможно обработать ошибку страницы для адреса: 0000000040003e54.
#PF: доступ супервизора на запись в режиме ядра
#PF: код_ошибки(0x0002) — страница отсутствует
Название оборудования: QEMU Standard PC (Q35 + ICH9, 2009 г.), BIOS edk2-20251119-3.fc43 19.11.2025
RIP: 0010:vmware_hypercall4.constprop.0+0x52/0x90
.. Отслеживание вызова:
vmmouse_report_events+0x13e/0x1b0
psmouse_handle_byte+0x15/0x60
ps2_interrupt+0x8a/0xd0
...
потому что эмуляция мыши QEMU VMware глючит и очищает верхние 32
биты %rdi, на которые ядро хранило указатель.
Драйвер QEMU vmmouse сохраняет и восстанавливает состояние регистра в
"uint32_t данные[6];" и в результате восстанавливает состояние с высоким
биты все очищены. RDI изначально содержал значение допустимого адреса стека ядра.
(0xff5eeb3240003e54). После гипервызова VMware он теперь содержит
0x40003e54, и в результате при разыменовании мы получаем ошибку страницы.
Правильное исправление было бы в QEMU, но это позволяет обойти проблему в
ядро, чтобы старые настройки работали, если старые ядра не использовались
сохранить любое состояние в %rdi при гипервызове. Теоретически такая же проблема существует для всех гипервызовов в vmmouse.
водитель; на практике это наблюдалось только с помощью vmware_hypercall3() и
vmware_hypercall4(). А пока просто отметьте RDI/RSI как затертые для тех,
два звонка.
Это должно оказать минимальное влияние на генерацию кода в целом. поскольку компилятор редко хочет запустить RDI/RSI в работу через гипервызовы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: x86/vmware: Fix hypercall clobbers Fedora QA reported the following panic: BUG: unable to handle page fault for address: 0000000040003e54 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS edk2-20251119-3.fc43 11/19/2025 RIP: 0010:vmware_hypercall4.constprop.0+0x52/0x90 .. Call Trace: vmmouse_report_events+0x13e/0x1b0 psmouse_handle_byte+0x15/0x60 ps2_interrupt+0x8a/0xd0 ... because the QEMU VMware mouse emulation is buggy, and clears the top 32 bits of %rdi that the kernel kept a pointer in. The QEMU vmmouse driver saves and restores the register state in a "uint32_t data[6];" and as a result restores the state with the high bits all cleared. RDI originally contained the value of a valid kernel stack address (0xff5eeb3240003e54). After the vmware hypercall it now contains 0x40003e54, and we get a page fault as a result when it is dereferenced. The proper fix would be in QEMU, but this works around the issue in the kernel to keep old setups working, when old kernels had not happened to keep any state in %rdi over the hypercall. In theory this same issue exists for all the hypercalls in the vmmouse driver; in practice it has only been seen with vmware_hypercall3() and vmware_hypercall4(). For now, just mark RDI/RSI as clobbered for those two calls. This should have a minimal effect on code generation overall as it should be rare for the compiler to want to make RDI/RSI live across hypercalls.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 10
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.11
|
6.12.70
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*
|
— | — |