riscv: stacktrace: Disable KASAN checks for non-current tasks (Linux Linux)

CVE-2025-40358
HIGH 7.1

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Deferred

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]

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f ; affected 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < f34ba22989da61186f30a40b6a82e0b3337b96fc ; affected 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 ; affected 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 2c8d2b53866fb229b438296526ef0fa5a990e5e5 ; affected 5d8544e2d0075a5f3c9a2cf27152354d54360da1 < 060ea84a484e852b52b938f234bf9b5503a6c910
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 6.1.167 ≤ 6.1.* ; unaffected 6.6.117 ≤ 6.6.* ; unaffected 6.12.58 ≤ 6.12.* ; unaffected 6.17.8 ≤ 6.17.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD