{"id":"CVE-2022-50657","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-12-09T16:17:17.110","lastModified":"2026-11-10T12:10:00.177","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["arch/riscv/mm/kasan_init.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"8fbdccd2b17335e1881a23865e98c63fcc345938","lessThan":"ff0f6becf3a6f817838b6f80a2c9cca43dce0576","versionType":"git","status":"affected"},{"version":"8fbdccd2b17335e1881a23865e98c63fcc345938","lessThan":"9f2ac64d6ca60db99132e08628ac2899f956a0ec","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["arch/riscv/mm/kasan_init.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","versionType":"semver","status":"unaffected"},{"version":"6.0.7","lessThanOrEqual":"6.0.*","versionType":"semver","status":"unaffected"},{"version":"6.1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/9f2ac64d6ca60db99132e08628ac2899f956a0ec","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ff0f6becf3a6f817838b6f80a2c9cca43dce0576","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}