CVE-2022-49004

published 21 Oct 2024 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 3f105a742725a1b78766a55169f1d827732e62b8, Kernel 96f479383d92944406d4b3f2bc03c2f640def9f1 and Kernel fa7a7d185ef380546b4b1fed6f84f31dbae8cec7.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.10, >=b91540d52a08b65eb6a2b09132e1bd54fa82754c <3f105a742725a1b78766a55169f1d827732e62b8, >=b91540d52a08b65eb6a2b09132e1bd54fa82754c <96f479383d92944406d4b3f2bc03c2f640def9f1, >=b91540d52a08b65eb6a2b09132e1bd54fa82754c <fa7a7d185ef380546b4b1fed6f84f31dbae8cec73f105a742725a1b78766a55169f1d827732e62b8, 96f479383d92944406d4b3f2bc03c2f640def9f1, fa7a7d185ef380546b4b1fed6f84f31dbae8cec7

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49004 severity on Zeptric[![CVE-2022-49004](https://zeptric.io/badge/cve/CVE-2022-49004.svg)](https://zeptric.io/cve/CVE-2022-49004)