CVE-2025-40358 Details
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: stacktrace: Disable KASAN checks for non-current tasks Unwinding the stack of a task other than current, KASAN would report "BUG: KASAN: out-of-bounds in walk_stackframe+0x41c/0x460" There is a same issue on x86 and has been resolved by the commit 84936118bdf3 ("x86/unwind: Disable KASAN checks for non-current tasks") The solution could be applied to RISC-V too. This patch also can solve the issue: https://seclists.org/oss-sec/2025/q4/23 [[email protected]: clean up checkpatch issues]
A vulnerability in the Linux kernel's RISC-V stack unwinding process allows the Kernel Address Sanitizer (KASAN) to report false out-of-bounds errors when unwinding the stack of non-current tasks. This issue arises because KASAN checks are not properly disabled for tasks that are not currently running, potentially leading to incorrect error reports. The vulnerability is present in the Linux kernel stable tree.
The vulnerability has been addressed in the Linux kernel stable tree by disabling KASAN checks for non-current tasks during stack unwinding. Users can upgrade to the latest stable version of the Linux kernel to apply this fix.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/060ea84a484e852b52b938f234bf9b5503a6c910 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/2c8d2b53866fb229b438296526ef0fa5a990e5e5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f | kernel.org | |
| https://git.kernel.org/stable/c/f34ba22989da61186f30a40b6a82e0b3337b96fc | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 25, 2026 | CVE Modified | kernel.org |
| Dec 16, 2025 | New CVE Received | kernel.org |
Volerion