CVE-2025-40274

Description

A flaw was found in the Linux kernel's KVM (Kernel-based Virtual Machine) subsystem. A use-after-free issue occurs in the guest memory management component when a virtual machine memory slot is deleted while its associated memory file is being closed. A local attacker with access to KVM interfaces could exploit this vulnerability to crash the system, resulting in a denial of service (DoS), or potentially achieve privilege escalation.

Statement

This vulnerability does not affect Red Hat Enterprise Linux, as the vulnerable guest_memfd feature introduced in upstream kernels is not present in supported Red Hat kernel releases. In upstream environments where guest-first memory is enabled, this flaw poses a local denial of service and privilege escalation risk requiring local access to KVM virtual machine ioctl interfaces. Because the underlying code was not incorporated into Red Hat enterprise kernels, host systems running supported Red Hat distributions are not exposed to this issue.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.

Frequently Asked Questions

Want to get errata notifications? Sign up here.