Kernel memory corruption via idle-stack overlap
Published Jun 24, 2024 · Updated May 11, 2026
Memory corruption in the RISC-V Linux kernel allows local users to corrupt secondary idle-thread register state during CPU hotplug. Secondary-hart startup fails to reserve the top of each idle-thread stack for pt_regs, so smp_callin overwrites registers and the status field. The observed path requires secondary harts and the V extension, and it causes invalid vector-context save or restore; no practical attack sequence is public.
Summary
What happened
Memory corruption in the RISC-V Linux kernel allows local users to corrupt secondary idle-thread register state during CPU hotplug. Secondary-hart startup fails to reserve the top of each idle-thread stack for pt_regs, so smp_callin overwrites registers and the status field. The observed path requires secondary harts and the V extension, and it causes invalid vector-context save or restore; no practical attack sequence is public.
The record
- CVE
- CVE-2024-38667
- Published
- Jun 24, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 24, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=2875fe0561569f82d0e63658ccf0d11ce7da8922 <0c1f28c32a194303da630fca89481334b9547b80
- Affected versionversion=2875fe0561569f82d0e63658ccf0d11ce7da8922 <3090c06d50eaa91317f84bf3eac4c265e6cb8d44
- Affected versionversion=2875fe0561569f82d0e63658ccf0d11ce7da8922 <a638b0461b58aa3205cd9d5f14d6f703d795b4af
- Affected versionversion=2875fe0561569f82d0e63658ccf0d11ce7da8922 <ea22d4195cca13d5fdbc4d6555a2dfb8a7867a9e
- Affected versionversion=5.7
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo