CVE-2025-23135
RISC-V: KVM: Teardown riscv specific bits after kvm_exit
Mitigation
- Upgrade Linux to 2d117e67f318303f6ab699a5511d1fac3f170545 or later.
Who should check
- Anyone running Linux >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < ce906c4ae572554f4ea4381d7d0a4ab39f5fca5d; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < b7236c52151c91f7b83a42d6ec5728a49e06416f; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1edb2de48616b11ee05e9a65d74c70abcb6d9939; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1521cc04f0b6e737ff30105aa57fa9dde8493231; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 2d117e67f318303f6ab699a5511d1fac3f170545
- Anyone running Linux 6.4
Vulnerability facts
- Affected
- Linux >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < ce906c4ae572554f4ea4381d7d0a4ab39f5fca5d; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < b7236c52151c91f7b83a42d6ec5728a49e06416f; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1edb2de48616b11ee05e9a65d74c70abcb6d9939; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1521cc04f0b6e737ff30105aa57fa9dde8493231; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 2d117e67f318303f6ab699a5511d1fac3f170545; Linux 6.4
- Fixed in
- Linux 1edb2de48616b11ee05e9a65d74c70abcb6d9939, Linux 1521cc04f0b6e737ff30105aa57fa9dde8493231, Linux 2d117e67f318303f6ab699a5511d1fac3f170545
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Teardown riscv specific bits after kvm_exit During a module removal, kvm_exit invokes arch specific disable call which disables AIA. However, we invoke aia_exit before kvm_exit resulting in the following warning. KVM kernel module can't be inserted afterwards due to inconsistent state of IRQ. [25469.031389] percpu IRQ 31 still enabled on CPU0! [25469.031732] WARNING: CPU: 3 PID: 943 at kernel/irq/manage.c:2476 __free_percpu_irq+0xa2/0x150 [25469.031804] Modules linked in: kvm(-) [25469.031848] CPU: 3 UID: 0 PID: 943 Comm: rmmod Not tainted 6.14.0-rc5-06947-g91c763118f47-dirty #2 [25469.031905] Hardware name: riscv-virtio,qemu (DT) [25469.031928] epc : __free_percpu_irq+0xa2/0x150 [25469.031976] ra : __free_percpu_irq+0xa2/0x150 [25469.032197] epc : ffffffff8007db1e ra : ffffffff8007db1e sp : ff2000000088bd50 [25469.032241] gp : ffffffff8131cef8 tp : ff60000080b96400 t0 : ff2000000088baf8 [25469.032285] t1 : fffffffffffffffc t2 : 5249207570637265 s0 : ff2000000088bd90 [25469.032329] s1 : ff60000098b21080 a0 : 037d527a15eb4f00 a1 : 037d527a15eb4f00 [25469.032372] a2 : 0000000000000023 a3 : 0000000000000001 a4 : ffffffff8122dbf8 [25469.032410] a5 : 0000000000000fff a6 : 0000000000000000 a7 : ffffffff8122dc10 [25469.032448] s2 : ff60000080c22eb0 s3 : 0000000200000022 s4 : 000000000000001f [25469.032488] s5 : ff60000080c22e00 s6 : ffffffff80c351c0 s7 : 0000000000000000 [25469.032582] s8 : 0000000000000003 s9 : 000055556b7fb490 s10: 00007ffff0e12fa0 [25469.032621] s11: 00007ffff0e13e9a t3 : ffffffff81354ac7 t4 : ffffffff81354ac7 [25469.032664] t5 : ffffffff81354ac8 t6 : ffffffff81354ac7 [25469.032698] status: 0000000200000100 badaddr: ffffffff8007db1e cause: 0000000000000003 [25469.032738] [<ffffffff8007db1e>] __free_percpu_irq+0xa2/0x150 [25469.032797] [<ffffffff8007dbfc>] free_percpu_irq+0x30/0x5e [25469.032856] [<ffffffff013a57dc>] kvm_riscv_aia_exit+0x40/0x42 [kvm] [25469.033947] [<ffffffff013b4e82>] cleanup_module+0x10/0x32 [kvm] [25469.035300] [<ffffffff8009b150>] __riscv_sys_delete_module+0x18e/0x1fc [25469.035374] [<ffffffff8000c1ca>] syscall_handler+0x3a/0x46 [25469.035456] [<ffffffff809ec9a4>] do_trap_ecall_u+0x72/0x134 [25469.035536] [<ffffffff809f5e18>] handle_exception+0x148/0x156 Invoke aia_exit and other arch specific cleanup functions after kvm_exit so that disable gets a chance to be called first before exit.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < ce906c4ae572554f4ea4381d7d0a4ab39f5fca5d; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < b7236c52151c91f7b83a42d6ec5728a49e06416f; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1edb2de48616b11ee05e9a65d74c70abcb6d9939; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1521cc04f0b6e737ff30105aa57fa9dde8493231; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 2d117e67f318303f6ab699a5511d1fac3f170545 | — | cvelist |
| Linux | 6.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-23135. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-23135.md Affected: Linux >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < ce906c4ae572554f4ea4381d7d0a4ab39f5fca5d; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < b7236c52151c91f7b83a42d6ec5728a49e06416f; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1edb2de48616b11ee05e9a65d74c70abcb6d9939; >= 54e43320c2ba0c70258a3ae… Fixed in: Linux 1edb2de48616b11ee05e9a65d74c70abcb6d9939, Linux 1521cc04f0b6e737ff30105aa57fa9dde8493231, Linux 2d117e67f318303f6ab699a5511d1fac3f170545 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2025-23135 being exploited?
There is no confirmed exploitation: CVE-2025-23135 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-23135?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-23135?
Linux >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < ce906c4ae572554f4ea4381d7d0a4ab39f5fca5d; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < b7236c52151c91f7b83a42d6ec5728a49e06416f; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1edb2de48616b11ee05e9a65d74c70abcb6d9939; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 1521cc04f0b6e737ff30105aa57fa9dde8493231; >= 54e43320c2ba0c70258a3aea690da38c6ea3293c, < 2d117e67f318303f6ab699a5511d1fac3f170545; Linux 6.4.
Is there a fix for CVE-2025-23135?
Yes. Fixed in Linux 1edb2de48616b11ee05e9a65d74c70abcb6d9939, Linux 1521cc04f0b6e737ff30105aa57fa9dde8493231, Linux 2d117e67f318303f6ab699a5511d1fac3f170545. Upgrade Linux to 2d117e67f318303f6ab699a5511d1fac3f170545 or later.
How do I check if I'm affected by CVE-2025-23135?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.