{"id":"CVE-2025-40358","aliases":["CVE-2025-40358"],"related":[],"kind":"vulnerability","state":"published","title":"riscv: stacktrace: Disable KASAN checks for non-current tasks","summary":"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]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nriscv: stacktrace: Deshabilitar las comprobaciones de KASAN para tareas no actuales\n\nAl desenrollar la pila de una tarea distinta de la actual, KASAN informaría 'BUG: KASAN: out-of-bounds in walk_stackframe+0x41c/0x460'\n\nExiste un problema similar en x86 y ha sido resuelto por el commit 84936118bdf3 ('x86/unwind: Deshabilitar las comprobaciones de KASAN para tareas no actuales')\nLa solución podría aplicarse a RISC-V también.\n\nEste parche también puede resolver el problema:\nhttps://seclists.org/oss-sec/2025/q4/23\n\n[pjw@kernel.org: limpiar problemas de checkpatch]","source":"nvd"}],"published":"2025-12-16T13:39:57.847Z","modified":"2026-10-14T13:10:00.187Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1","fixed":"ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f","status":"affected"},{"type":"git","introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1","fixed":"f34ba22989da61186f30a40b6a82e0b3337b96fc","status":"affected"},{"type":"git","introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1","fixed":"27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2","status":"affected"},{"type":"git","introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1","fixed":"2c8d2b53866fb229b438296526ef0fa5a990e5e5","status":"affected"},{"type":"git","introduced":"5d8544e2d0075a5f3c9a2cf27152354d54360da1","fixed":"060ea84a484e852b52b938f234bf9b5503a6c910","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"6.1.167","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f34ba22989da61186f30a40b6a82e0b3337b96fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c8d2b53866fb229b438296526ef0fa5a990e5e5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/060ea84a484e852b52b938f234bf9b5503a6c910","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40358","url":"https://www.cve.org/CVERecord?id=CVE-2025-40358","licence":"CVE Terms of Use","modified":"2026-08-05T12:09:53.455Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40358","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40358","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.473Z","epss":{"score":0.00161,"percentile":0.05478,"date":"2026-12-01T12:00:22.000Z"}}