{"id":"CVE-2022-49562","summary":"KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits","details":"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.","modified":"2026-05-12T03:52:36.154810Z","published":"2025-02-26T02:14:06.515Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49562.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/38b888911e8dc89b89d8147cfb1d2dbe6373bf78"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8089e5e1d18402fb8152d6b6815450a36fffa9b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f122dfe4476890d60b8c679128cd2259ec96a24c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49562.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49562"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bd53cb35a3e9adb73a834a36586e9ad80e877767"},{"fixed":"38b888911e8dc89b89d8147cfb1d2dbe6373bf78"},{"fixed":"8089e5e1d18402fb8152d6b6815450a36fffa9b0"},{"fixed":"f122dfe4476890d60b8c679128cd2259ec96a24c"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49562.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.17.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"5.18.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49562.json"}}],"schema_version":"1.7.5"}