CVE-2022-50657
publishedriscv: mm: add missing memcpy in kasan_init
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8fbdccd2b17335e1881a23865e98c63fcc345938 to < ff0f6becf3a6f817838b6f80a2c9cca43dce0576 · 8fbdccd2b17335e1881a23865e98c63fcc345938 to < 9f2ac64d6ca60db99132e08628ac2899f956a0ec · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.18 (affected) · 0 to < 5.18 (unaffected · semver) · 6.0.7 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8fbdccd2b17335e1881a23865e98c63fcc345938 to < ff0f6becf3a6f817838b6f80a2c9cca43dce0576 (affected · git)8fbdccd2b17335e1881a23865e98c63fcc345938 to < 9f2ac64d6ca60db99132e08628ac2899f956a0ec (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.18 (affected)0 to < 5.18 (unaffected · semver)6.0.7 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
riscv: mm: add missing memcpy in kasan_init
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 817d5379a3b0c272cf93a6d7a9f8a6cee539d77c184f78f4931566843e6b4d8d
- Ingested
- 23 Sep 2026, 08:04:48 UTC
- Source record
- Official CVE record