CVE-2022-50657 Details
Description
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.
A vulnerability in the Linux kernel's memory management for the RISC-V architecture has been addressed. The issue arose from a missing memory copy operation during the initialization of the Kernel Address Sanitizer (KASAN), which could lead to a system panic. This vulnerability affected the Linux kernel stable tree and was present in versions prior to the patch. The absence of the memory copy caused page faults when reading or writing to the KASAN shadow region, particularly with the new allocations for page table directories. The vulnerability was identified and tested on QEMU with both SV57 and SV48 virtual environments, using a kernel configuration that enabled KASAN.
Users can apply the patch available in the Linux kernel stable tree to address this vulnerability. The patch can be downloaded as part of the Linux kernel source code.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 9, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/9f2ac64d6ca60db99132e08628ac2899f956a0ec | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ff0f6becf3a6f817838b6f80a2c9cca43dce0576 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 9, 2025 | New CVE Received | kernel.org |
Volerion