Review reviewHigh

CVE-2025-40358

Linux

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
7.1
EPSS
0.13%
3.22% percentile
CISA KEV
Not listed
Published
2025.12.16
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.13%
Technical severityCVSS 7.1

Vulnerability overview

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]

Affected product and versions

Product
Linux
Affected versions
>= 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f, >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < f34ba22989da61186f30a40b6a82e0b3337b96fc, >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2, >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 2c8d2b53866fb229b438296526ef0fa5a990e5e5, >= 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 060ea84a484e852b52b938f234bf9b5503a6c910, >= 4.15
Fixed versions
No verified fixed-version field is available yet

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CWE
Not available
CVE-2025-40358 — Linux | SECUFOCUS NOW