CVE-2024-38667
Apache RiscV Kernel Invalid Pointer Referencelaws
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: prevent pt_regs corruption for secondary idle threads Top of the kernel thread stack should be reserved for pt_regs. However this is not the case for the idle threads of the secondary boot harts. Their stacks overlap with their pt_regs, so both may get corrupted. Similar issue has been fixed for the primary hart, see c7cdd96eca28 ("riscv: prevent stack corruption by reserving task_pt_regs(p) early"). However that fix was not propagated to the secondary harts. The problem has been noticed in some CPU hotplug tests with V enabled. The function smp_callin stored several registers on stack, corrupting top of pt_regs structure including status field. As a result, kernel attempted to save or restore inexistent V context.
INFO
Published Date :
June 24, 2024, 2:15 p.m.
Last Modified :
Nov. 21, 2024, 9:26 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-38667
.
URL | Resource |
---|---|
https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 | Mailing List Patch |
https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 | Mailing List Patch |
https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af | Mailing List Patch |
https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e | Mailing List Patch |
https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 | Mailing List Patch |
https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 | Mailing List Patch |
https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af | Mailing List Patch |
https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e | Mailing List Patch |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-38667
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-38667
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 Added Reference https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 Added Reference https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af Added Reference https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e -
Initial Analysis by [email protected]
Jun. 26, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 No Types Assigned https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 No Types Assigned https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af No Types Assigned https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e No Types Assigned https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e Mailing List, Patch Added CWE NIST CWE-787 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.7 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1 up to (excluding) 6.1.93 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.9.4 *cpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:* -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 24, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: riscv: prevent pt_regs corruption for secondary idle threads Top of the kernel thread stack should be reserved for pt_regs. However this is not the case for the idle threads of the secondary boot harts. Their stacks overlap with their pt_regs, so both may get corrupted. Similar issue has been fixed for the primary hart, see c7cdd96eca28 ("riscv: prevent stack corruption by reserving task_pt_regs(p) early"). However that fix was not propagated to the secondary harts. The problem has been noticed in some CPU hotplug tests with V enabled. The function smp_callin stored several registers on stack, corrupting top of pt_regs structure including status field. As a result, kernel attempted to save or restore inexistent V context. Added Reference kernel.org https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-38667
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-38667
weaknesses.