BreachSpiderVerified, not vibes

CVE-2025-40358 in Kernel products

High 7.1

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 th...

Affects 1 product from 4 vendors. Facts below cite their sources.

CVSS 3.17.1
EPSS0.2%
EPSS percentile7th
FixUnknown

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Kernel — —
Linux Linux 4.15
Risc-V — —
Tasks — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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]

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-40358
BreachSpider IDBS-2025-GLOBAL-259154-I
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Published2025-12-16
Last modified2026-10-14
SourceNVD

Analysis AI-written, not human-reviewed

A vulnerability in the Linux kernel affects the RISC-V architecture where KASAN (Kernel Address Sanitizer) checks were not disabled for non-current tasks, leading to false positive 'out-of-bounds' errors during stack unwinding.

The issue arises during the stack unwinding process of non-current tasks, where KASAN incorrectly reports out-of-bounds errors. This can lead to system instability or crashes, but does not directly expose the system to external attacks.

Questions

What is CVE-2025-40358?

A vulnerability in the Linux kernel affects the RISC-V architecture where KASAN (Kernel Address Sanitizer) checks were not disabled for non-current tasks, leading to false positive 'out-of-bounds' errors during stack unwinding.

What is the CVSS score for CVE-2025-40358?

CVE-2025-40358 has CVSS 7.1 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. EPSS: 0.2%.

Is CVE-2025-40358 actively exploited?

No confirmed active exploitation of CVE-2025-40358 as of 2026-10-16.

How do I remediate CVE-2025-40358?

Priority: MEDIUM.

What systems are affected by CVE-2025-40358?

CVE-2025-40358 affects Kernel; Linux Linux; Risc-V; Tasks.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-14.