CVE-2025-40358
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]
Affected versions
Linux kernel versions
4.15
and later are affected. Fixed in
6.1.167,
6.6.117,
6.12.58,
6.17.8,
6.18
and their respective stable series.
References
The following references provide additional information about CVE-2025-40358 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/060ea84a484e852b52b938f234bf9b5503a6c910
-
PatchKernel patch commithttps://git.kernel.org/stable/c/27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2c8d2b53866fb229b438296526ef0fa5a990e5e5
Frequently asked questions
-
What is CVE-2025-40358?
CVE-2025-40358 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.15 onward and has been patched in 6.1.167, 6.6.117, 6.12.58 and others. CVE-2025-40358 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-40358?
Yes — CVE-2025-40358 has been patched. Fixed versions include 6.1.167, 6.6.117, 6.12.58 and others. If you are running Linux kernel 4.15 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-40358 actively exploited?
No — CVE-2025-40358 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.