KVM: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2a2eb10795a1e495aebc7f829ccecb72c05b4fd9, Kernel bae3e4493046de4fefa15f809d9b8dc114e84a3d and Kernel faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc.
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve() pkvm_vcpu_init_sve() clamps only the upper bound of the host-provided sve_max_vl, so an invalid vector length reaches sve_state_size_from_vl() and the WARN_ON() there, which is fatal at EL2. The existing !sve_state_size test rejects such a length, but only after the macro has run. Check sve_vl_valid() before deriving the state size. A valid length cannot yield a zero size, so the !sve_state_size test goes with it.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=5db1bef933427aa467ad89c7b695a84a6b4afe16 <2a2eb10795a1e495aebc7f829ccecb72c05b4fd9, >=5db1bef933427aa467ad89c7b695a84a6b4afe16 <bae3e4493046de4fefa15f809d9b8dc114e84a3d, >=5db1bef933427aa467ad89c7b695a84a6b4afe16 <faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc | 2a2eb10795a1e495aebc7f829ccecb72c05b4fd9, bae3e4493046de4fefa15f809d9b8dc114e84a3d, faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket