{"id":"CVE-2022-50657","aliases":["CVE-2022-50657"],"related":[],"kind":"vulnerability","state":"published","title":"riscv: mm: add missing memcpy in kasan_init","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nriscv: mm: añadir memcpy faltante en kasan_init\n\nHola Atish,\n\nParece que el pánico se debe al memcpy faltante durante kasan_init.\n¿Podrías por favor verificar si este parche es útil?\n\nAl hacer kasan_populate, el nuevo base_pud/base_p4d asignado debería contener el contenido de kasan_early_shadow_{pud, p4d}. Añadir el memcpy faltante para evitar un fallo de página al leer/escribir la región de sombra de kasan.\n\nProbado en:\n- qemu con sv57 y CONFIG_KASAN activado.\n- qemu con sv48 y CONFIG_KASAN activado.","source":"nvd"}],"published":"2025-12-09T01:29:04.968Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8fbdccd2b17335e1881a23865e98c63fcc345938","fixed":"ff0f6becf3a6f817838b6f80a2c9cca43dce0576","status":"affected"},{"type":"git","introduced":"8fbdccd2b17335e1881a23865e98c63fcc345938","fixed":"9f2ac64d6ca60db99132e08628ac2899f956a0ec","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.0.7","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ff0f6becf3a6f817838b6f80a2c9cca43dce0576","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f2ac64d6ca60db99132e08628ac2899f956a0ec","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50657","url":"https://www.cve.org/CVERecord?id=CVE-2022-50657","licence":"CVE Terms of Use","modified":"2026-05-11T19:23:06.462Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50657","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50657","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.307Z","epss":{"score":0.00241,"percentile":0.16357,"date":"2026-12-02T12:00:21.000Z"}}