# CVE-2026-98638: KVM: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-18T15:20:09.380Z
- Modified: 2026-10-19T10:19:28.037Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5db1bef933427aa467ad89c7b695a84a6b4afe16 before faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc; from 5db1bef933427aa467ad89c7b695a84a6b4afe16 before bae3e4493046de4fefa15f809d9b8dc114e84a3d; from 5db1bef933427aa467ad89c7b695a84a6b4afe16 before 2a2eb10795a1e495aebc7f829ccecb72c05b4fd9; 6.16 (not affected: before 6.16; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc>
- <https://git.kernel.org/stable/c/bae3e4493046de4fefa15f809d9b8dc114e84a3d>
- <https://git.kernel.org/stable/c/2a2eb10795a1e495aebc7f829ccecb72c05b4fd9>

## Sources

- CVE List: [CVE-2026-98638](https://www.cve.org/CVERecord?id=CVE-2026-98638), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98638](https://nvd.nist.gov/vuln/detail/CVE-2026-98638), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98638 · Whole record: https://cve.day/CVE-2026-98638.json · Rebuilt by cve.day 2026-11-25T22:59:45.253Z
