CVE-2025-40358
Last modified
CVE-2025-40358 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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]. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < f34ba22989da61186f30a40b6a82e0b3337b96fc; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 2c8d2b53866fb229b438296526ef0fa5a990e5e5; >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1, < 060ea84a484e852b52b938f234bf9b5503a6c910 |
| Linux | Linux | 4.15 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40358?
How severe is CVE-2025-40358?
How do I fix CVE-2025-40358?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40352In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40353In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40354In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40355In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40356In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40357In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40359In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4036A vulnerability was found in 201206030 Novel 3.5.0 and class…9.8
- CVE-2025-40360In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40361Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2025-40362In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40363In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40358?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
