В ядре Linux устранена следующая уязвимость:
x86/cpu: удалите X86_CR4_FRED из маски закрепленных битов CR4. В Commit in Fixes добавлен бит FRED CR4 в маску закрепленных битов CR4, поэтому
что всякий раз, когда что-то еще изменяет CR4, этот бит остается установленным. Какой
сама по себе это прекрасная идея.
Однако возникает проблема, когда во время загрузки инициализируется FRED: сначала
BSP, а затем и AP. Таким образом, существует окно во времени, когда
исключения не могут быть обработаны. Это становится особенно неприятно при работе под именем SEV-{ES,SNP} или TDX.
гости, которые, когда им удается вызвать исключения в течение этого короткого
окно, описанное выше, тройная ошибка из-за того, что FRED MSR не настроены
еще.
См. тег Link ниже для более подробного объяснения ситуация. Итак, в результате фиксация в этом URL-адресе ссылки попыталась решить эту проблему. недостаток путем временного отключения закрепления CR4, когда точка доступа не онлайн еще. Однако это само по себе является проблемой, поскольку в данном случае атака на ядру необходимо изменить только бит онлайн — один бит в RW памяти - а затем отключить закрепление CR4, а затем отключить SM*P, что приведет к с системой происходит все больше и хуже.
Поэтому вместо этого удалите бит FRED из маски закрепления CR4, таким образом
устраняя необходимость временного отключения закрепления CR4. Если у кого-то получится отключить FRED при тыкании в CR4, то
idt_invalidate() будет гарантировать, что система выйдет из строя и сгорит на
сработало первое исключение, что является гораздо лучшим результатом с точки зрения безопасности.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask Commit in Fixes added the FRED CR4 bit to the CR4 pinned bits mask so that whenever something else modifies CR4, that bit remains set. Which in itself is a perfectly fine idea. However, there's an issue when during boot FRED is initialized: first on the BSP and later on the APs. Thus, there's a window in time when exceptions cannot be handled. This becomes particularly nasty when running as SEV-{ES,SNP} or TDX guests which, when they manage to trigger exceptions during that short window described above, triple fault due to FRED MSRs not being set up yet. See Link tag below for a much more detailed explanation of the situation. So, as a result, the commit in that Link URL tried to address this shortcoming by temporarily disabling CR4 pinning when an AP is not online yet. However, that is a problem in itself because in this case, an attack on the kernel needs to only modify the online bit - a single bit in RW memory - and then disable CR4 pinning and then disable SM*P, leading to more and worse things to happen to the system. So, instead, remove the FRED bit from the CR4 pinning mask, thus obviating the need to temporarily disable CR4 pinning. If someone manages to disable FRED when poking at CR4, then idt_invalidate() would make sure the system would crash'n'burn on the first exception triggered, which is a much better outcome security-wise.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 11
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.9.1
|
6.12.80
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.21
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.11
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
|
— | — |