KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.18.40, Kernel 7.1.5, Kernel 6.12.97 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops() kvm_hyp_handle_mops() resets the single-step state machine as part of rewinding state for a MOPS exception by modifying vcpu_cpsr() and writing the result directly into hardware. In the case of nested virtualization, vcpu_cpsr() is a synthetic value such that the rest of KVM can deal with vEL2 cleanly. That means the value requires translation before being written into hardware, which is unfortunately missing from the MOPS handler. Fix it by directly modifying SPSR_EL2 and avoiding the synthetic state altogether, which will be resynchronized on the next 'full' exit back to KVM.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.13 <6.18.40, >=6.19 <7.1.5, >=6.7 <6.12.97, =7.2, >=2de451a329cf662beeba71f63c7f83ee24ca6642 <884b44256041ec6b2dcbe8e6a67384d26145cba1, >=2de451a329cf662beeba71f63c7f83ee24ca6642 <dd3b237eb7780d65eae296d3d3a70012b6e7a02f, >=2de451a329cf662beeba71f63c7f83ee24ca6642 <ff1022c3de46753eb7eba2f6efd990569e66ff95, =6.7, >=2de451a329cf662beeba71f63c7f83ee24ca6642 <10a568010e827108d149779908850afaec898846 | 6.18.40, 7.1.5, 6.12.97, 884b44256041ec6b2dcbe8e6a67384d26145cba1, dd3b237eb7780d65eae296d3d3a70012b6e7a02f, ff1022c3de46753eb7eba2f6efd990569e66ff95, 10a568010e827108d149779908850afaec898846 |
| linux-kernel: Kernel | >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.7.0 <6.12.97 | 6.18.40, 7.1.5, 6.12.97 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket