CVE-2022-49004

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49004
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49004.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49004
Downstream
Published
2024-10-21T20:15:11Z
Modified
2025-08-09T19:01:27Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages