CVE-2025-40358: riscv: stacktrace: Disable KASAN checks for non-current tasks
Vulnerability summary
CVE-2025-40358 is a high (CVSS 7.1) vulnerability in linux. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.1% of scored vulnerabilities.
Not severe (CVSS 7.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 17 · Related 15Timeline
- 16-12-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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 [pjw@kernel.org: clean up checkpatch issues]
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- NVDNIST7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.15% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu153 products
- linuxAll versions (No fix recorded) | < 6.8.0-106.106 | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1050.53 | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linux< 6.1.170-1 | < 6.12.63-1 | < 6.17.8-1
Linux1 product
- linux≥ 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f | ≥ 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < f34ba22989da61186f30a40b6a82e0b3337b96fc | ≥ 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 | ≥ 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 2c8d2b53866fb229b438296526ef0fa5a990e5e5 | ≥ 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 060ea84a484e852b52b938f234bf9b5503a6c910 | 4.15
3 vendors · 155 products