CVE-2022-49004

Source
https://cve.org/CVERecord?id=CVE-2022-49004
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49004.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49004
Downstream
Published
2024-10-21T20:06:17.410Z
Modified
2026-03-20T12:22:05.514178Z
Summary
riscv: Sync efi page table's kernel mappings before switching
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49004.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2022-49004.json"