Bug 2320794 (CVE-2022-49004) - CVE-2022-49004 kernel: riscv: Sync efi page table's kernel mappings before switching
Summary: CVE-2022-49004 kernel: riscv: Sync efi page table's kernel mappings befor...
Keywords:
Status: NEW
Alias: CVE-2022-49004
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 22:04 UTC by OSIDB Bzimport
Modified: 2024-10-22 05:02 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 22:04:45 UTC
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.

Comment 1 Avinash Hanwate 2024-10-22 04:58:56 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024102151-CVE-2022-49004-18ac@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.