CVE-2026-31590
KVM: SEV: Drop WARN on large size for KVM_MEMORY_ENCRYPT_REG_REGION
Reported by linux · Published April 24, 2026
In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Drop WARN on large size for KVM_MEMORY_ENCRYPT_REG_REGION Drop the WARN in sev_pin_memory() on npages overflowing an int, as the WARN is comically trivially to trigger from userspace, e.g. by doing: struct kvm_enc_region range = { .addr = 0, .size = -1ul, }; __vm_ioctl(vm, KVM_MEMORY_ENCRYPT_REG_REGION, &range); Note, the checks in sev_mem_enc_register_region() that presumably exist to verify the incoming address+size are completely worthless, as both "addr" and "size" are u64s and SEV is 64-bit only, i.e. they _can't_ be greater than ULONG_MAX. That wart will be cleaned up in the near future. if (range->addr > ULONG_MAX || range->size > ULONG_MAX) return -EINVAL; Opportunistically add a comment to explain why the code calculates the number of pages the "hard" way, e.g. instead of just shifting @ulen.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-azure-6.18 | Chainguard | 6.18.31-r0 |
| bpftool | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| linux-vmware-6.12 | Chainguard | 6.12.85-r0 |
| kernel-devel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| Linux | Linux | c29ff288a2d97a6f4640a498a367cf0eb91312eb, ab423e5892826202a660b5ac85d1125b0e8301a5, 28cc13ca20431b127d42d84ba10898d03e2c8267, 1cba4dcd795daf6d257122779fb6a349edf03914 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 78824fabc72e5e37d51e6e567fde70a4fc41a6d7, 78824fabc72e5e37d51e6e567fde70a4fc41a6d7, 78824fabc72e5e37d51e6e567fde70a4fc41a6d7 |
| Linux | Linux | 5.9, 0, 5.10.258 |
| chainguard | linux-azure-6.18 | 0 |
| amazon:2023 | bpftool | 0 |
| chainguard | linux-vmware-6.12 | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 7.1, 78824fabc72e5e37d51e6e567fde70a4fc41a6d7, 78824fabc72e5e37d51e6e567fde70a4fc41a6d7 |
| chainguard | linux-aws-6.18 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| chainguard | linux-qemu-6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.1.175-219.357 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| chainguard | linux-aws-6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| chainguard | linux-gcp-6.18 | 0 |
…and 3 more
Timeline
- Apr 24, 2026 CVE Published
- Apr 24, 2026 Security Advisory (103 in total, the first dated here)
- May 18, 2026 EPSS Score (25 in total, the first dated here)
- Jul 18, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (97 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-31590
vulnetix vdb fixes CVE-2026-31590
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31590/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart