CVE-2024-35791
published high CVSS 3.1 · 7.8KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux4f627ecde7329e476a077bb0590db8f27bb8f912 to < 2d13b79640b147bd77c34a5998533b2021a4122d · 19a23da53932bc8011220bd8c410cb76012de004 to < e126b508ed2e616d679d85fca2fbe77bb48bbdd7 · 19a23da53932bc8011220bd8c410cb76012de004 to < 4868c0ecdb6cfde7c70cf478c46e06bb9c7e5865 · 19a23da53932bc8011220bd8c410cb76012de004 to < 12f8e32a5a389a5d58afc67728c76e61beee1ad4 · 19a23da53932bc8011220bd8c410cb76012de004 to < f6d53d8a2617dd58c89171a6b9610c470ebda38a · 19a23da53932bc8011220bd8c410cb76012de004 to < 5ef1d8c1ddbf696e47b226e11888eaf8d9e8e807 · f1ecde00ce1694597f923f0d25f7a797c5243d99 · 848bcb0a1d96f67d075465667d3a1ad4af56311e · 5.10.15 to < 5.10.215 · 4.19.176 to < 4.20 · 5.4.98 to < 5.5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 5.10.215 through 5.10.* (unaffected · semver) · 5.15.154 through 5.15.* (unaffected · semver) · 6.1.84 through 6.1.* (unaffected · semver) · 6.6.24 through 6.6.* (unaffected · semver) · 6.7.12 through 6.7.* (unaffected · semver) · 6.8 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-068 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-049 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-696 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | bpftool | Advisory build | 7.3.0-427.35.1.el9_4 | ALSA-2024:6567 |
| Debian | buster | linux-5.10 | Advisory build | 5.10.216-1~deb10u1 | DLA-3842-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.3.0-427.35.1.el9_4 | ELSA-2024-6567 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-427.35.1.el9_4 | ALSA-2024:6567 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.3.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | python3-perfaarch64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | python3-perfx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | rtlax86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
| Oracle Linux | 9 | rvx86_64 | Advisory build | 0:5.14.0-427.35.1.el9_4 | ELSA-2024-6567 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region() Do the cache flush of converted pages in svm_register_enc_region() before dropping kvm->lock to fix use-after-free issues where region and/or its array of pages could be freed by a different task, e.g. if userspace has __unregister_enc_region_locked() already queued up for the region. Note, the "obvious" alternative of using local variables doesn't fully resolve the bug, as region->pages is also dynamically allocated. I.e. the region structure itself would be fine, but region->pages could be freed. Flushing multiple pages under kvm->lock is unfortunate, but the entire flow is a rare slow path, and the manual flush is only needed on CPUs that lack coherency for encrypted memory.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached only through the `KVM_MEMORY_ENCRYPT_REG_REGION`/`KVM_MEMORY_ENCRYPT_UNREG_REGION` ioctls on a local KVM VM file descriptor obtained from /dev/kvm. There is no remote or network-facing path to `sev_mem_enc_register_region()`. AC:L - The attacker controls both sides of the race, issuing the register and unregister ioctls from two threads it owns, and can widen the window arbitrarily by registering a large region since `sev_clflush_pages()` loops per page with `cond_resched()` after the lock is dropped. Nothing about winning the race depends on conditions outside the attacker's influence. PR:L - No capability check exists on the path — neither `kvm_arch_vm_ioctl()`'s `KVM_MEMORY_ENCRYPT_*_REGION` cases nor `sev_guest_init()` require CAP_SYS_ADMIN — so any local user with access to /dev/kvm (commonly granted via the `kvm` group or permissive device modes on virtualization hosts) can create an SEV VM and trigger the UAF. UI:N - The attacking process performs both ioctls itself; no action by any other user or victim process is needed. S:U - The attacker is host userspace (the VMM process) corrupting host kernel memory, so the vulnerable component and impacted component share the same security authority. This is not a guest-to-host escape, as the guest cannot issue these ioctls. C:H - The use-after-free reads a freed, sprayable kvmalloc'd `struct page *` array and then maps and flushes those attacker-influenceable pointers via `kmap_local_page()`, exposing arbitrary kernel/physical memory and enabling information disclosure once the freed slabs are reallocated. I:H - Two heap objects (`region` and `region->pages`) are used after being freed and can be reallocated with attacker-controlled contents, giving the heap-spray primitives typical of exploitable UAFs; `clflush_cache_range()` on a bogus mapping additionally acts on memory outside the intended range. A:H - Dereferencing freed `region->npages`/`region->pages` and calling `kmap_local_page()` on garbage `struct page` pointers reliably produces an oops or panic, taking the host kernel down.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 4f627ecde7329e476a077bb0590db8f27bb8f912 to < 2d13b79640b147bd77c34a5998533b2021a4122d (affected · git)19a23da53932bc8011220bd8c410cb76012de004 to < e126b508ed2e616d679d85fca2fbe77bb48bbdd7 (affected · git)19a23da53932bc8011220bd8c410cb76012de004 to < 4868c0ecdb6cfde7c70cf478c46e06bb9c7e5865 (affected · git)19a23da53932bc8011220bd8c410cb76012de004 to < 12f8e32a5a389a5d58afc67728c76e61beee1ad4 (affected · git)19a23da53932bc8011220bd8c410cb76012de004 to < f6d53d8a2617dd58c89171a6b9610c470ebda38a (affected · git)19a23da53932bc8011220bd8c410cb76012de004 to < 5ef1d8c1ddbf696e47b226e11888eaf8d9e8e807 (affected · git)f1ecde00ce1694597f923f0d25f7a797c5243d99 (affected · git)848bcb0a1d96f67d075465667d3a1ad4af56311e (affected · git)5.10.15 to < 5.10.215 (affected · semver)4.19.176 to < 4.20 (affected · semver)5.4.98 to < 5.5 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 5.11 (affected)0 to < 5.11 (unaffected · semver)5.10.215 through 5.10.* (unaffected · semver)5.15.154 through 5.15.* (unaffected · semver)6.1.84 through 6.1.* (unaffected · semver)6.6.24 through 6.6.* (unaffected · semver)6.7.12 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/12f8e32a5a389a5d58afc67728c76e61beee1ad4
- https://git.kernel.org/stable/c/2d13b79640b147bd77c34a5998533b2021a4122d
- https://git.kernel.org/stable/c/4868c0ecdb6cfde7c70cf478c46e06bb9c7e5865
- https://git.kernel.org/stable/c/5ef1d8c1ddbf696e47b226e11888eaf8d9e8e807
- https://git.kernel.org/stable/c/e126b508ed2e616d679d85fca2fbe77bb48bbdd7
- https://git.kernel.org/stable/c/f6d53d8a2617dd58c89171a6b9610c470ebda38a
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Provider assertions
3Linux · cna
KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0bbbfa8416c847adc1ba656c61763ba43b8b7b02177f6f77c32082d2471186ca
- Ingested
- 23 Sep 2026, 08:23:51 UTC
- Source record
- Official CVE record