In the Linux kernel, the following vulnerability has been resolved: riscv: stacktrace: Disable KASAN checks for non-current tasks Unwinding the… (CVE-2025-40358)
A vulnerability in the Linux kernel's RISC-V architecture stacktrace handling has been resolved. The issue involved KASAN (Kernel Address Sanitizer) checks being performed on non-current tasks during stack unwinding, which caused out-of-bounds errors. This vulnerability could lead to a high impact on confidentiality and availability. A similar issue on the x86 architecture was previously fixed, and the same solution has been applied to RISC-V. No affected versions or patch links are explicitly provided in the data.
AI Analysis
Technical Summary
The vulnerability CVE-2025-40358 in the Linux kernel concerns the RISC-V architecture's stacktrace mechanism where KASAN checks were incorrectly applied to non-current tasks during stack unwinding. This caused KASAN to report out-of-bounds memory access errors, potentially leading to kernel crashes or information disclosure. The issue mirrors a previously resolved problem on the x86 architecture, where disabling KASAN checks for non-current tasks mitigated the vulnerability. The patch for RISC-V applies the same approach, preventing KASAN from checking non-current tasks and thus resolving the issue.
Potential Impact
The vulnerability allows an attacker with limited privileges (local access with low complexity) to cause a denial of service (kernel crash) or potentially gain unauthorized access to kernel memory, impacting confidentiality and availability. The CVSS vector indicates low attack complexity and privileges required, no user interaction, and a high impact on confidentiality and availability but no integrity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The issue has been resolved in the Linux kernel source by disabling KASAN checks for non-current tasks on RISC-V, following the precedent set on x86. Users should monitor official Linux kernel advisories and update to the fixed kernel versions once available.
In the Linux kernel, the following vulnerability has been resolved: riscv: stacktrace: Disable KASAN checks for non-current tasks Unwinding the… (CVE-2025-40358)
Description
A vulnerability in the Linux kernel's RISC-V architecture stacktrace handling has been resolved. The issue involved KASAN (Kernel Address Sanitizer) checks being performed on non-current tasks during stack unwinding, which caused out-of-bounds errors. This vulnerability could lead to a high impact on confidentiality and availability. A similar issue on the x86 architecture was previously fixed, and the same solution has been applied to RISC-V. No affected versions or patch links are explicitly provided in the data.
CVSS v3.1
Score 7.1high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2025-40358 in the Linux kernel concerns the RISC-V architecture's stacktrace mechanism where KASAN checks were incorrectly applied to non-current tasks during stack unwinding. This caused KASAN to report out-of-bounds memory access errors, potentially leading to kernel crashes or information disclosure. The issue mirrors a previously resolved problem on the x86 architecture, where disabling KASAN checks for non-current tasks mitigated the vulnerability. The patch for RISC-V applies the same approach, preventing KASAN from checking non-current tasks and thus resolving the issue.
Potential Impact
The vulnerability allows an attacker with limited privileges (local access with low complexity) to cause a denial of service (kernel crash) or potentially gain unauthorized access to kernel memory, impacting confidentiality and availability. The CVSS vector indicates low attack complexity and privileges required, no user interaction, and a high impact on confidentiality and availability but no integrity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The issue has been resolved in the Linux kernel source by disabling KASAN checks for non-current tasks on RISC-V, following the precedent set on x86. Users should monitor official Linux kernel advisories and update to the fixed kernel versions once available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-qchg-c772-c4pf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40358"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d49c2644c7f8478c22
Added to database: 07/30/2026, 15:50:44 UTC
Last enriched: 07/30/2026, 18:07:28 UTC
Last updated: 09/10/2026, 19:26:52 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.