CVE-2022-49562

KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits

State
Published
Severity
7.8 High
Published
Feb 26, 2025
Updated
Aug 5, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

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

KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits

Use the recently introduced __try_cmpxchg_user() to update guest PTE A/D bits instead of mapping the PTE into kernel address space. The VM_PFNMAP path is broken as it assumes that vm_pgoff is the base pfn of the mapped VMA range, which is conceptually wrong as vm_pgoff is the offset relative to the file and has nothing to do with the pfn. The horrific hack worked for the original use case (backing guest memory with /dev/mem), but leads to accessing "random" pfns for pretty much any other VM_PFNMAP case.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • bd53cb35a3e9adb73a834a36586e9ad80e877767 to before 38b888911e8dc89b89d8147cfb1d2dbe6373bf78Affected
  • bd53cb35a3e9adb73a834a36586e9ad80e877767 to before 8089e5e1d18402fb8152d6b6815450a36fffa9b0Affected
  • bd53cb35a3e9adb73a834a36586e9ad80e877767 to before f122dfe4476890d60b8c679128cd2259ec96a24cAffected
LinuxLinux
  • 5.2Affected
  • before 5.2Not affected
  • 5.17.13 through 5.17.*Not affected
  • 5.18.2 through 5.18.*Not affected
  • 5.19 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.