{"id":"CVE-2024-38667","published":"2024-06-24T13:52:25Z","modified":"2026-05-11T20:20:45Z","title":"riscv: prevent pt_regs corruption for secondary idle threads","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: prevent pt_regs corruption for secondary idle threads\n\nTop of the kernel thread stack should be reserved for pt_regs. However\nthis is not the case for the idle threads of the secondary boot harts.\nTheir stacks overlap with their pt_regs, so both may get corrupted.\n\nSimilar issue has been fixed for the primary hart, see c7cdd96eca28\n(\"riscv: prevent stack corruption by reserving task_pt_regs(p) early\").\nHowever that fix was not propagated to the secondary harts. The problem\nhas been noticed in some CPU hotplug tests with V enabled. The function\nsmp_callin stored several registers on stack, corrupting top of pt_regs\nstructure including status field. As a result, kernel attempted to save\nor restore inexistent V context.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00228,"percentile":0.13864,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e","tags":[]},{"url":"https://git.kernel.org/stable/c/3090c06d50eaa91317f84bf3eac4c265e6cb8d44","tags":[]},{"url":"https://git.kernel.org/stable/c/0c1f28c32a194303da630fca89481334b9547b80","tags":[]},{"url":"https://git.kernel.org/stable/c/a638b0461b58aa3205cd9d5f14d6f703d795b4af","tags":[]}],"priority":{"score":2.8,"factors":[{"name":"EPSS percentile","points":2.77}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2875fe0561569f82d0e63658ccf0d11ce7da8922, < ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e",">= 2875fe0561569f82d0e63658ccf0d11ce7da8922, < 3090c06d50eaa91317f84bf3eac4c265e6cb8d44",">= 2875fe0561569f82d0e63658ccf0d11ce7da8922, < 0c1f28c32a194303da630fca89481334b9547b80",">= 2875fe0561569f82d0e63658ccf0d11ce7da8922, < a638b0461b58aa3205cd9d5f14d6f703d795b4af"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:08:46.656306Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37519","exploited":false,"provenance":"source"}}