CVE-2026-98638

Source
https://cve.org/CVERecord?id=CVE-2026-98638
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98638.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98638
Downstream
Published
2026-10-18T15:20:09Z
Modified
2026-10-20T02:30:20Z
Summary
KVM: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98638.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5db1bef933427aa467ad89c7b695a84a6b4afe16
Fixed
faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc
Fixed
bae3e4493046de4fefa15f809d9b8dc114e84a3d
Fixed
2a2eb10795a1e495aebc7f829ccecb72c05b4fd9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98638.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.55
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98638.json"