CVE-2022-49004

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

State
Published
Severity
Not scored
Published
Oct 21, 2024
Updated
May 11, 2026
Reserved
Aug 22, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b91540d52a08b65eb6a2b09132e1bd54fa82754c to before fa7a7d185ef380546b4b1fed6f84f31dbae8cec7Affected
  • b91540d52a08b65eb6a2b09132e1bd54fa82754c to before 96f479383d92944406d4b3f2bc03c2f640def9f1Affected
  • b91540d52a08b65eb6a2b09132e1bd54fa82754c to before 3f105a742725a1b78766a55169f1d827732e62b8Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.15.82 through 5.15.*Not affected
  • 6.0.12 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.