CVE-2024-35791
Last modified
CVE-2024-35791 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.19.176, < 4.20 | — |
| Linux | Linux Kernel | >= 5.4.98, < 5.5 | — |
| Linux | Linux Kernel | >= 5.10.15, < 5.10.215 | — |
| Linux | Linux Kernel | >= 5.11.1, < 5.15.154 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.84 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.24 | — |
| Linux | Linux Kernel | >= 6.7, < 6.7.12 | — |
| Linux | Linux Kernel | 5.11 | — |
| Linux | Linux Kernel | 6.8 | Rc1 |
| Debian | Debian Linux | 10.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-35791?
How severe is CVE-2024-35791?
How do I fix CVE-2024-35791?
Are you affected by CVE-2024-35791?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
