CVE-2025-40358
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-16

Last updated on: 2026-03-25

Assigner: kernel.org

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]
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-16
Last Modified
2026-03-25
Generated
2026-06-16
AI Q&A
2025-12-16
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability occurs in the Linux kernel where the Kernel Address Sanitizer (KASAN) performs out-of-bounds checks when unwinding the stack of a task other than the current one. Specifically, KASAN reports a 'BUG: KASAN: out-of-bounds in walk_stackframe' error due to these checks. The issue affects RISC-V architecture and is similar to a previously resolved issue on x86. The fix involves disabling KASAN checks for non-current tasks during stack unwinding.

Impact Analysis

The vulnerability can cause the Linux kernel to report false positive KASAN out-of-bounds errors when unwinding the stack of non-current tasks. This may lead to kernel instability or crashes during debugging or runtime analysis, potentially affecting system reliability and debugging processes.

Mitigation Strategies

Apply the patch that disables KASAN checks for non-current tasks in the Linux kernel, as done in commit 84936118bdf3 for x86 and similarly for RISC-V. Refer to the patch linked at https://seclists.org/oss-sec/2025/q4/23 for details.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40358. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart