CVE-2025-37849

KVM: arm64: Tear down vGIC on failed vCPU creation

State
Published
Severity
8.8 High
Published
May 9, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

KVM: arm64: Tear down vGIC on failed vCPU creation

If kvm_arch_vcpu_create() fails to share the vCPU page with the hypervisor, we propagate the error back to the ioctl but leave the vGIC vCPU data initialised. Note only does this leak the corresponding memory when the vCPU is destroyed but it can also lead to use-after-free if the redistributor device handling tries to walk into the vCPU.

Add the missing cleanup to kvm_arch_vcpu_create(), ensuring that the vGIC vCPU structures are destroyed on error.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before 07476e0d932afc53c05468076393ac35d0b4999eAffected
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before 5085e02362b9948f82fceca979b8f8e12acb1cc5Affected
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before c322789613407647a05ff5c451a7bf545fb34e73Affected
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before 2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52Affected
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before f1e9087abaeedec9bf2894a282ee4f0d8383f299Affected
  • 6211753fdfd05af9e08f54c8d0ba3ee516034878 to before 250f25367b58d8c65a1b060a2dda037eea09a672Affected
LinuxLinux
  • 3.11Affected
  • before 3.11Not affected
  • 6.1.135 through 6.1.*Not affected
  • 6.6.88 through 6.6.*Not affected
  • 6.12.24 through 6.12.*Not affected
  • 6.13.12 through 6.13.*Not affected
  • 6.14.3 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.