{"id":"CVE-2024-46792","state":"PUBLISHED","title":"riscv: misaligned: Restrict user access to kernel memory","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: misaligned: Restrict user access to kernel memory\n\nraw_copy_{to,from}_user() do not call access_ok(), so this code allowed\nuserspace to access any virtual memory address.","publishedAt":"2024-09-18T07:12:47.455Z","updatedAt":"2026-08-05T11:38:35.301Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c83232161f609bbc452a1255f823f41afc411dd","status":"affected","lessThan":"a3b6ff6c896aee5ef9b581e40d0045ff04fcbc8c","versionType":"git"},{"version":"7c83232161f609bbc452a1255f823f41afc411dd","status":"affected","lessThan":"b686ecdeacf6658e1348c1a32a08e2e72f7c0f00","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/traps_misaligned.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.10.10","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/traps_misaligned.c"]}],"references":["https://git.kernel.org/stable/c/a3b6ff6c896aee5ef9b581e40d0045ff04fcbc8c","https://git.kernel.org/stable/c/b686ecdeacf6658e1348c1a32a08e2e72f7c0f00"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/46xxx/CVE-2024-46792.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-46792","state":"PUBLISHED","datePublished":"2024-09-18T07:12:47.455Z","dateUpdated":"2026-08-05T11:38:35.301Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-11T15:12:18.279Z"},"containers":{"cna":{"title":"riscv: misaligned: Restrict user access to kernel memory","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: misaligned: Restrict user access to kernel memory\n\nraw_copy_{to,from}_user() do not call access_ok(), so this code allowed\nuserspace to access any virtual memory address."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c83232161f609bbc452a1255f823f41afc411dd","status":"affected","lessThan":"a3b6ff6c896aee5ef9b581e40d0045ff04fcbc8c","versionType":"git"},{"version":"7c83232161f609bbc452a1255f823f41afc411dd","status":"affected","lessThan":"b686ecdeacf6658e1348c1a32a08e2e72f7c0f00","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/traps_misaligned.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.10.10","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/kernel/traps_misaligned.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a3b6ff6c896aee5ef9b581e40d0045ff04fcbc8c"},{"url":"https://git.kernel.org/stable/c/b686ecdeacf6658e1348c1a32a08e2e72f7c0f00"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires executing an instruction on the target machine, i.e. any local unprivileged process on a RISC-V system; there is no remote or adjacent-network reachability.\nAC:L - The attacker fully controls both the target address (regs->badaddr) and the stored data (rs2), the emulation path is enabled in the default RISC-V config, and faults are swallowed by the extable — so the read/write is deterministic and repeatable with no race or memory-layout dependency.\nPR:L - Any unprivileged local user can trigger it by executing a single misaligned load/store; no capabilities, namespaces, or syscalls are needed at all.\nUI:N - The attacking process triggers the trap entirely on its own; no victim action is involved.\nS:U - Impact is confined to the kernel's own security authority — this is standard local kernel compromise/privilege escalation, not a hypervisor or IOMMU boundary crossing.\nC:H - handle_misaligned_load() copies 8 bytes from any attacker-chosen kernel address straight into a user register, giving a repeatable arbitrary kernel-memory read over the entire address space including the direct map.\nI:H - handle_misaligned_store() writes 8 bytes of attacker-controlled data to any kernel address, an arbitrary kernel write primitive that yields credential overwrite and kernel code execution.\nA:H - The same arbitrary write lets an attacker corrupt critical kernel structures or text at will, causing immediate panic or permanent system compromise."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:38:35.301Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.10.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-29T14:23:34.926999Z","id":"CVE-2024-46792","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-29T14:23:47.441Z"}}]}}}