CVE-2024-35791
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-35791 is a use-after-free vulnerability discovered in the Linux kernel's KVM (Kernel-based Virtual Machine) subsystem, specifically affecting the SVM (Secure Virtual Machine) component. The vulnerability was discovered in May 2024 and affects the svm_register_enc_region() function. The issue occurs when handling encrypted memory regions in virtualized environments (NVD).

Technical details

The vulnerability stems from a race condition where region and/or its array of pages could be freed by a different task after dropping kvm->lock, particularly if userspace has __unregister_enc_region_locked() already queued up for the region. The issue involves cache flushing of converted pages in svm_register_enc_region() that needs to be performed before dropping kvm->lock to prevent use-after-free issues. While using local variables might seem like an obvious fix, it doesn't fully resolve the bug since region->pages is dynamically allocated (Kernel Commit).

Impact

The vulnerability could lead to use-after-free issues in the Linux kernel's KVM subsystem when handling encrypted memory regions. This could potentially affect system stability and security in virtualized environments, particularly on systems using AMD's SVM technology (NVD).

Exploitability

The vulnerability occurs on a rare slow path, and the manual flush is only needed on CPUs that lack coherency for encrypted memory. While this somewhat limits the exposure, the issue could be triggered when userspace operations interact with encrypted memory region management (Kernel Commit).

Mitigation and workarounds

The issue has been fixed in the Linux kernel by modifying the svm_register_enc_region() function to perform cache flushing before dropping kvm->lock. The fix has been backported to various stable kernel versions. Users should update their kernel to a patched version. For Ubuntu 22.04 LTS, the fix is included in version 5.15.0-116.126, and for Red Hat Enterprise Linux, it's included in kernel-rt version 5.14.0-284.75.1.rt14.360 (Ubuntu, Red Hat).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74576HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-6.17
NoYesAug 15, 2026
CVE-2026-74578HIGH7.1
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesAug 16, 2026
CVE-2026-74579LOW3.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesAug 17, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • perf
NoNoAug 21, 2026
CVE-2026-74577NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management