{"id":"CVE-2022-49004","summary":"riscv: Sync efi page table's kernel mappings before switching","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Sync efi page table's kernel mappings before switching\n\nThe EFI page table is initially created as a copy of the kernel page table.\nWith VMAP_STACK enabled, kernel stacks are allocated in the vmalloc area:\nif the stack is allocated in a new PGD (one that was not present at the\nmoment of the efi page table creation or not synced in a previous vmalloc\nfault), the kernel will take a trap when switching to the efi page table\nwhen the vmalloc kernel stack is accessed, resulting in a kernel panic.\n\nFix that by updating the efi kernel mappings before switching to the efi\npage table.","modified":"2026-04-02T08:27:13.553450Z","published":"2024-10-21T20:06:17.410Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49004.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3f105a742725a1b78766a55169f1d827732e62b8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96f479383d92944406d4b3f2bc03c2f640def9f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa7a7d185ef380546b4b1fed6f84f31dbae8cec7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49004.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49004"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b91540d52a08b65eb6a2b09132e1bd54fa82754c"},{"fixed":"fa7a7d185ef380546b4b1fed6f84f31dbae8cec7"},{"fixed":"96f479383d92944406d4b3f2bc03c2f640def9f1"},{"fixed":"3f105a742725a1b78766a55169f1d827732e62b8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49004.json"}}],"schema_version":"1.7.5"}