What’s Vulnerable › Vulnerabilities
CVE-2022-50657: riscv: mm: add missing memcpy in kasan_init
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-12-09 · updated 2026-06-17
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: mm: add missing memcpy in kasan_init Hi Atish, It seems that the panic is due to the missing memcpy during kasan_init. Could you please check whether this patch is helpful? When doing kasan_populate, the new allocated base_pud/base_p4d should contain kasan_early_shadow_{pud, p4d}'s content. Add the missing memcpy to avoid page fault when read/write kasan shadow region. Tested on: - qemu with sv57 and CONFIG_KASAN on. - qemu with sv48 and CONFIG_KASAN on.
Affected products
- Linux kernel: 5.18 — fixed in 6.1
How to fix
Upgrade to a fixed version: Linux kernel 6.1. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/9f2ac64d6ca60db99132e08628ac2899f956a0ec
- https://git.kernel.org/stable/c/ff0f6becf3a6f817838b6f80a2c9cca43dce0576
Get alerted when CVE-2022-50657 or the next vulnerability affects your stack