{"id":"CVE-2025-40358","summary":"riscv: stacktrace: Disable KASAN checks for non-current tasks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: stacktrace: Disable KASAN checks for non-current tasks\n\nUnwinding the stack of a task other than current, KASAN would report\n\"BUG: KASAN: out-of-bounds in walk_stackframe+0x41c/0x460\"\n\nThere is a same issue on x86 and has been resolved by the commit\n84936118bdf3 (\"x86/unwind: Disable KASAN checks for non-current tasks\")\nThe solution could be applied to RISC-V too.\n\nThis patch also can solve the issue:\nhttps://seclists.org/oss-sec/2025/q4/23\n\n[pjw@kernel.org: clean up checkpatch issues]","modified":"2026-03-26T04:18:23.170687Z","published":"2025-12-16T13:39:57.847Z","related":["MGASA-2026-0017","MGASA-2026-0018"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40358.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/060ea84a484e852b52b938f234bf9b5503a6c910"},{"type":"WEB","url":"https://git.kernel.org/stable/c/27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2c8d2b53866fb229b438296526ef0fa5a990e5e5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f34ba22989da61186f30a40b6a82e0b3337b96fc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40358.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40358"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1"},{"fixed":"ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f"},{"fixed":"f34ba22989da61186f30a40b6a82e0b3337b96fc"},{"fixed":"27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2"},{"fixed":"2c8d2b53866fb229b438296526ef0fa5a990e5e5"},{"fixed":"060ea84a484e852b52b938f234bf9b5503a6c910"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40358.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"6.1.167"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.58"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40358.json"}}],"schema_version":"1.7.5"}