{"id":"CVE-2022-49562","published":"2025-02-26T02:14:06Z","modified":"2026-08-05T08:55:46Z","title":"KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits\n\nUse the recently introduced __try_cmpxchg_user() to update guest PTE A/D\nbits instead of mapping the PTE into kernel address space.  The VM_PFNMAP\npath is broken as it assumes that vm_pgoff is the base pfn of the mapped\nVMA range, which is conceptually wrong as vm_pgoff is the offset relative\nto the file and has nothing to do with the pfn.  The horrific hack worked\nfor the original use case (backing guest memory with /dev/mem), but leads\nto accessing \"random\" pfns for pretty much any other VM_PFNMAP case.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0028,"percentile":0.20569,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/38b888911e8dc89b89d8147cfb1d2dbe6373bf78","tags":[]},{"url":"https://git.kernel.org/stable/c/8089e5e1d18402fb8152d6b6815450a36fffa9b0","tags":[]},{"url":"https://git.kernel.org/stable/c/f122dfe4476890d60b8c679128cd2259ec96a24c","tags":[]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":4.11},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bd53cb35a3e9adb73a834a36586e9ad80e877767, < 38b888911e8dc89b89d8147cfb1d2dbe6373bf78",">= bd53cb35a3e9adb73a834a36586e9ad80e877767, < 8089e5e1d18402fb8152d6b6815450a36fffa9b0",">= bd53cb35a3e9adb73a834a36586e9ad80e877767, < f122dfe4476890d60b8c679128cd2259ec96a24c"]},{"vendor":"Linux","product":"Linux","versions":["5.2"]}],"euvd":{"id":"EUVD-2022-54670","exploited":false,"provenance":"source"}}