Skip to main content
EPSS 0.1%top 96%

In the Linux kernel, the following vulnerability has been resolved: riscv: stacktrace: Disable KASAN checks for non-current tasks Unwinding the… (CVE-2025-40358)

0
High
Published: 12/16/2025 (12/16/2025, 15:30:43 UTC)
Source: GCVE Database

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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 18:07:28 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses