CVE-2025-40358
published high CVSS 3.1 · 7.1riscv: stacktrace: Disable KASAN checks for non-current tasks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f · 5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < f34ba22989da61186f30a40b6a82e0b3337b96fc · 5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 · 5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 2c8d2b53866fb229b438296526ef0fa5a990e5e5 · 5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 060ea84a484e852b52b938f234bf9b5503a6c910 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.15 (affected) · 0 to < 4.15 (unaffected · semver) · 6.1.167 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.58 through 6.12.* (unaffected · semver) · 6.17.8 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.170-1 | DSA-6243-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.170-1~deb11u1 | DLA-4561-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1050 | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1051 | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1052 | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-headers-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-headers-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-106 | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8-headers-6.8.0-1049 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-ibm-6.8-tools-6.8.0-1049 | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-106 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-106 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-106 | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1049-nvidia-64k | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-modules-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-modules-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1052-gcp-64k | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-106-generic | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-106-generic-64k | Advisory build | 6.8.0-106.106~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-106-lowlatency | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.0-106-lowlatency-64k | Advisory build | 6.8.0-106.106.1~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-6.8.1-1045-realtime | Advisory build | 6.8.1-1045.46~22.04.1 | USN-8095-3 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1047-oracle | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1047-oracle-64k | Advisory build | 6.8.0-1047.48~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1049-ibm | Advisory build | 6.8.0-1049.49~22.04.1 | USN-8095-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1049-nvidia | Advisory build | 6.8.0-1049.52~22.04.1 | USN-8100-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1050-aws | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1050-aws-64k | Advisory build | 6.8.0-1050.53~22.04.1 | USN-8095-4 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1051-azure | Advisory build | 6.8.0-1051.57~22.04.1 | USN-8126-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1052-gcp | Advisory build | 6.8.0-1052.55~22.04.1 | USN-8095-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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 [[email protected]: clean up checkpatch issues]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - The unwinder is reached through local interfaces only — reading /proc/PID/stack, or by inducing a hung-task/OOM-reaper/workqueue-stall stack dump from a local process. No network-facing code path reaches walk_stackframe on a non-current task. AC:L - The attacker controls both sides of the race: one thread spins in the kernel while a sibling thread reads the stack of the still-running task, which is exactly what the published syzkaller reproducer does. No memory layout or timing condition outside the attacker's influence is needed. PR:L - The demonstrated /proc/PID/stack path requires CAP_SYS_ADMIN in the initial user namespace, but the same non-current unwind is reached without privileges via default-enabled paths that dump a concurrently running task — hung_task's debug_show_blocker() on a running mutex owner, the OOM reaper failure dump, and the workqueue stall watchdog. An ordinary local account suffices for those. UI:N - The attacker triggers the stack walk entirely from its own threads; no action by another user or administrator is required. S:U - The faulty read and its consequences are confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The unwinder performs an out-of-bounds read of another task's live kernel stack, following an attacker-influenced frame chain to essentially arbitrary offsets within that stack, and the resulting KASAN splat plus /proc/PID/stack output disclose raw kernel stack and text addresses, defeating KASLR. I:N - walk_stackframe only loads values from the stack and reports them through a bounded consumer callback; there is no write of any kind, so no kernel state can be modified. A:H - The KASAN report goes through check_panic_on_warn("KASAN") and honors kasan.fault=panic, so a repeatable attacker-triggered splat becomes a kernel panic on such configurations, and unbounded report flooding degrades the system otherwise.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f (affected · git)5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < f34ba22989da61186f30a40b6a82e0b3337b96fc (affected · git)5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2 (affected · git)5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 2c8d2b53866fb229b438296526ef0fa5a990e5e5 (affected · git)5d8544e2d0075a5f3c9a2cf27152354d54360da1 to < 060ea84a484e852b52b938f234bf9b5503a6c910 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.15 (affected)0 to < 4.15 (unaffected · semver)6.1.167 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.58 through 6.12.* (unaffected · semver)6.17.8 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/060ea84a484e852b52b938f234bf9b5503a6c910
- https://git.kernel.org/stable/c/27379fcc15a10d3e3780fe79ba3fc7ed1ccd78e2
- https://git.kernel.org/stable/c/2c8d2b53866fb229b438296526ef0fa5a990e5e5
- https://git.kernel.org/stable/c/ef4d626ac59a56f8ec5cc09c1fef26f2923eec6f
- https://git.kernel.org/stable/c/f34ba22989da61186f30a40b6a82e0b3337b96fc
Provider assertions
1Linux · cna
riscv: stacktrace: Disable KASAN checks for non-current tasks
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4a4da730eafc938ea86863fd896608d99f92ae97bf2e210af70fd0e8f67f6b17
- Ingested
- 23 Sep 2026, 08:48:04 UTC
- Source record
- Official CVE record