In the Linux kernel, the following vulnerability has been resolved: KVM: Disallow toggling KVM_MEM_GUEST_MEMFD on an existing memslot Reject… (CVE-2025-68810)
A use-after-free vulnerability in the Linux kernel's KVM subsystem was resolved by disallowing toggling the KVM_MEM_GUEST_MEMFD flag on an existing memory slot. The issue arises when attempts to disable this flag on a memslot initially created with guest_memfd binding are not rejected, leading to improper unbinding and a use-after-free condition. This vulnerability can cause memory corruption and potentially allow privilege escalation or denial of service. The flaw was identified and fixed to prevent such toggling, addressing the root cause rather than just the symptom.
AI Analysis
Technical Summary
The Linux kernel's KVM module did not prevent clearing the KVM_MEM_GUEST_MEMFD flag on an existing memslot that was originally created with this flag set. This improper handling led to a use-after-free vulnerability because KVM failed to unbind from the guest_memfd instance when the flag was cleared. The vulnerability was detected by KASAN (Kernel Address Sanitizer) showing slab-use-after-free in kvm_gmem_release. The fix involves rejecting attempts to disable KVM_MEM_GUEST_MEMFD on memslots initially created with guest_memfd binding, preventing the use-after-free condition. This patch addresses the underlying cause rather than just mitigating the symptom.
Potential Impact
Successful exploitation of this vulnerability can lead to use-after-free memory corruption within the KVM kernel module. This may result in system instability, crashes, or potentially privilege escalation due to corrupted kernel memory. The CVSS 3.1 vector indicates local attack vector with low attack complexity, requiring low privileges, no user interaction, and impacts confidentiality, integrity, and availability with high severity.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject attempts to toggle the KVM_MEM_GUEST_MEMFD flag on existing memslots that were initially created with this flag. Users and administrators should apply the official Linux kernel updates that include this fix. Since this is a kernel-level vulnerability, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; therefore, check the Linux kernel vendor advisory for the exact fixed versions and apply updates accordingly.
In the Linux kernel, the following vulnerability has been resolved: KVM: Disallow toggling KVM_MEM_GUEST_MEMFD on an existing memslot Reject… (CVE-2025-68810)
Description
A use-after-free vulnerability in the Linux kernel's KVM subsystem was resolved by disallowing toggling the KVM_MEM_GUEST_MEMFD flag on an existing memory slot. The issue arises when attempts to disable this flag on a memslot initially created with guest_memfd binding are not rejected, leading to improper unbinding and a use-after-free condition. This vulnerability can cause memory corruption and potentially allow privilege escalation or denial of service. The flaw was identified and fixed to prevent such toggling, addressing the root cause rather than just the symptom.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's KVM module did not prevent clearing the KVM_MEM_GUEST_MEMFD flag on an existing memslot that was originally created with this flag set. This improper handling led to a use-after-free vulnerability because KVM failed to unbind from the guest_memfd instance when the flag was cleared. The vulnerability was detected by KASAN (Kernel Address Sanitizer) showing slab-use-after-free in kvm_gmem_release. The fix involves rejecting attempts to disable KVM_MEM_GUEST_MEMFD on memslots initially created with guest_memfd binding, preventing the use-after-free condition. This patch addresses the underlying cause rather than just mitigating the symptom.
Potential Impact
Successful exploitation of this vulnerability can lead to use-after-free memory corruption within the KVM kernel module. This may result in system instability, crashes, or potentially privilege escalation due to corrupted kernel memory. The CVSS 3.1 vector indicates local attack vector with low attack complexity, requiring low privileges, no user interaction, and impacts confidentiality, integrity, and availability with high severity.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject attempts to toggle the KVM_MEM_GUEST_MEMFD flag on existing memslots that were initially created with this flag. Users and administrators should apply the official Linux kernel updates that include this fix. Since this is a kernel-level vulnerability, upgrading to a patched kernel version is the recommended remediation. Patch status is not explicitly stated in the provided data; therefore, check the Linux kernel vendor advisory for the exact fixed versions and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-65g7-h87v-v85m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-68810"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d19c2644c7f8477368
Added to database: 07/30/2026, 15:50:41 UTC
Last enriched: 07/30/2026, 19:12:13 UTC
Last updated: 09/10/2026, 19:38:44 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.