CVE-2022-1158
Reported by redhat · Published August 5, 2022
A flaw was found in KVM. When updating a guest's page table entry, vm_pgoff was improperly used as the offset to get the page's pfn. As vaddr and vm_pgoff are controllable by user-mode processes, this flaw allows unprivileged local users on the host to write outside the userspace region and potentially corrupt the kernel, resulting in a denial of service condition.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.1.10-15.42 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-headers | Amazon Linux | 6.1.10-15.42.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.10-15.42.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.10-15.42.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.10-15.42.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.10-15.42.amzn2023 |
| linux-hardened | Arch Linux | 5.17.5.hardened1-1 |
| python3-perf | Amazon Linux | 6.1.10-15.42.amzn2023 |
| bpftool | Amazon Linux | 6.1.10-15.42.amzn2023 |
| linux-zen | Arch Linux | 5.17.3.zen1-1 |
| linux_kernel | linux | 5.17.2, 5.16.19, 5.15.33, 5.10.110, 5.4.189 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | kernel | kernel 5.18 |
| amazon:2023 | kernel-livepatch-6.1.10-15.42 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| arch | linux-lts | * |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| arch | linux-hardened | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | bpftool | 0 |
| arch | linux-zen | 0 |
| n/a | kernel | 5.18 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| arch | linux | 0 |
| amazon:2023 | perf | 0 |
Timeline
- Apr 7, 2022 CVE Published
- Aug 6, 2022 EPSS Score (30 in total, the first dated here)
- Aug 8, 2024 PoC Published
- Mar 17, 2026 Distribution Patch (26 in total, the first dated here)
- Mar 17, 2026 Security Advisory (26 in total, the first dated here)
- Jul 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-1158
vulnetix vdb fixes CVE-2022-1158
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-2022-1158/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart