CVE-2022-50657

published 9 Dec 2025 · updated 12 Nov 2026

riscv: mm: add missing memcpy in kasan_init

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 9f2ac64d6ca60db99132e08628ac2899f956a0ec, Kernel ff0f6becf3a6f817838b6f80a2c9cca43dce0576 and Kernel 6.0.7.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.18, >=8fbdccd2b17335e1881a23865e98c63fcc345938 <9f2ac64d6ca60db99132e08628ac2899f956a0ec, >=8fbdccd2b17335e1881a23865e98c63fcc345938 <ff0f6becf3a6f817838b6f80a2c9cca43dce05769f2ac64d6ca60db99132e08628ac2899f956a0ec, ff0f6becf3a6f817838b6f80a2c9cca43dce0576
linux-kernel: Kernel>=5.18.0 <6.0.76.0.7

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50657 severity on Zeptric[![CVE-2022-50657](https://zeptric.io/badge/cve/CVE-2022-50657.svg)](https://zeptric.io/cve/CVE-2022-50657)