{"id":"CVE-2022-50657","published":"2025-12-09T01:29:04Z","modified":"2026-05-11T19:23:06Z","title":"riscv: mm: add missing memcpy in kasan_init","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: mm: add missing memcpy in kasan_init\n\nHi Atish,\n\nIt seems that the panic is due to the missing memcpy during kasan_init.\nCould you please check whether this patch is helpful?\n\nWhen doing kasan_populate, the new allocated base_pud/base_p4d should\ncontain kasan_early_shadow_{pud, p4d}'s content. Add the missing memcpy\nto avoid page fault when read/write kasan shadow region.\n\nTested on:\n - qemu with sv57 and CONFIG_KASAN on.\n - qemu with sv48 and CONFIG_KASAN on.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00241,"percentile":0.15342,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ff0f6becf3a6f817838b6f80a2c9cca43dce0576","tags":[]},{"url":"https://git.kernel.org/stable/c/9f2ac64d6ca60db99132e08628ac2899f956a0ec","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.07}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8fbdccd2b17335e1881a23865e98c63fcc345938, < ff0f6becf3a6f817838b6f80a2c9cca43dce0576",">= 8fbdccd2b17335e1881a23865e98c63fcc345938, < 9f2ac64d6ca60db99132e08628ac2899f956a0ec"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2022-55748","exploited":false,"provenance":"source"}}