CVE-2022-49562

published 26 Feb 2025 · updated 6 Nov 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 38b888911e8dc89b89d8147cfb1d2dbe6373bf78, Kernel 8089e5e1d18402fb8152d6b6815450a36fffa9b0 and Kernel f122dfe4476890d60b8c679128cd2259ec96a24c.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.2, >=bd53cb35a3e9adb73a834a36586e9ad80e877767 <38b888911e8dc89b89d8147cfb1d2dbe6373bf78, >=bd53cb35a3e9adb73a834a36586e9ad80e877767 <8089e5e1d18402fb8152d6b6815450a36fffa9b0, >=bd53cb35a3e9adb73a834a36586e9ad80e877767 <f122dfe4476890d60b8c679128cd2259ec96a24c38b888911e8dc89b89d8147cfb1d2dbe6373bf78, 8089e5e1d18402fb8152d6b6815450a36fffa9b0, f122dfe4476890d60b8c679128cd2259ec96a24c

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49562 severity on Zeptric[![CVE-2022-49562](https://zeptric.io/badge/cve/CVE-2022-49562.svg)](https://zeptric.io/cve/CVE-2022-49562)