CVE-2022-50657
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
09/12/2025
Last modified:
09/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
riscv: mm: add missing memcpy in kasan_init<br />
<br />
Hi Atish,<br />
<br />
It seems that the panic is due to the missing memcpy during kasan_init.<br />
Could you please check whether this patch is helpful?<br />
<br />
When doing kasan_populate, the new allocated base_pud/base_p4d should<br />
contain kasan_early_shadow_{pud, p4d}&#39;s content. Add the missing memcpy<br />
to avoid page fault when read/write kasan shadow region.<br />
<br />
Tested on:<br />
- qemu with sv57 and CONFIG_KASAN on.<br />
- qemu with sv48 and CONFIG_KASAN on.



