CVE-2022-49004

riscv: Sync efi page table's kernel mappings before switching

published October 21, 2024

CVSS
—
EPSS
0%
Percentile
14.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

riscv: Sync efi page table's kernel mappings before switching

The EFI page table is initially created as a copy of the kernel page table.

With VMAP_STACK enabled, kernel stacks are allocated in the vmalloc area:

if the stack is allocated in a new PGD (one that was not present at the

moment of the efi page table creation or not synced in a previous vmalloc

fault), the kernel will take a trap when switching to the efi page table

when the vmalloc kernel stack is accessed, resulting in a kernel panic.

Fix that by updating the efi kernel mappings before switching to the efi

page table.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00245 · 14.9th percentile
Published
2024-10-21T20:06Z
EPSS history
Timeline
  • 21 OCT 20:06Z
    riscv: Sync efi page table's kernel mappings before switching
    cvelistv5