Kernel memory read via non-current stack unwinding
Published Dec 16, 2025 · Updated Dec 16, 2025
Out-of-bounds access in affected Linux kernels allows local users to read kernel memory or interrupt service during RISC-V stack unwinding. When proc_pid_stack unwinds a non-current task, walk_stackframe applies KASAN checks to another task's stack and reports an out-of-bounds access. Reachability requires local low-privileged access, a RISC-V kernel with KASAN enabled, and a concurrent procfs stack read; public discussion disputes that this is exploitable memory corruption.
Summary
What happened
Out-of-bounds access in affected Linux kernels allows local users to read kernel memory or interrupt service during RISC-V stack unwinding. When proc_pid_stack unwinds a non-current task, walk_stackframe applies KASAN checks to another task's stack and reports an out-of-bounds access. Reachability requires local low-privileged access, a RISC-V kernel with KASAN enabled, and a concurrent procfs stack read; public discussion disputes that this is exploitable memory corruption.
The record
- CVE
- CVE-2025-40358
- Published
- Dec 16, 2025
- Updated
- Dec 16, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- Unavailable
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 16, 2025CVE publishedPublication date reported by the CVE source.
- Dec 16, 2025Record 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=4.15
- Affected versionversion=5d8544e2d0075a5f3c9a2cf27152354d54360da1 <060ea84a484e852b52b938f234bf9b5503a6c910
- Affected versionversion=5d8544e2d0075a5f3c9a2cf27152354d54360da1 <27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2
- Affected versionversion=5d8544e2d0075a5f3c9a2cf27152354d54360da1 <2c8d2b53866fb229b438296526ef0fa5a990e5e5
- Affected versionversion=5d8544e2d0075a5f3c9a2cf27152354d54360da1 <f34ba22989da61186f30a40b6a82e0b3337b96fc
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
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
No sourced classifications are available.
Public exploit references
- oss-sec RISC-V proc_pid_stack reproducerproof of concept · demonstrated
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