{"id":"CVE-2022-49562","aliases":["CVE-2022-49562"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KVM: x86: Use __try_cmpxchg_user() para actualizar los bits A/D de la PTE invitada Use la recientemente introducida __try_cmpxchg_user() para actualizar los bits A/D de la PTE invitada en lugar de mapear la PTE en el espacio de direcciones del kernel. La ruta VM_PFNMAP está rota ya que asume que vm_pgoff es la pfn base del rango VMA mapeado, lo cual es conceptualmente incorrecto ya que vm_pgoff es el desplazamiento relativo al archivo y no tiene nada que ver con la pfn. El horrible hack funcionó para el caso de uso original (respaldar la memoria invitada con /dev/mem), pero conduce al acceso a pfn \"aleatorios\" para prácticamente cualquier otro caso VM_PFNMAP.","source":"nvd"}],"published":"2025-02-26T02:14:06.515Z","modified":"2026-08-05T08:55:46.165Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"bd53cb35a3e9adb73a834a36586e9ad80e877767","fixed":"38b888911e8dc89b89d8147cfb1d2dbe6373bf78","status":"affected"},{"type":"git","introduced":"bd53cb35a3e9adb73a834a36586e9ad80e877767","fixed":"8089e5e1d18402fb8152d6b6815450a36fffa9b0","status":"affected"},{"type":"git","introduced":"bd53cb35a3e9adb73a834a36586e9ad80e877767","fixed":"f122dfe4476890d60b8c679128cd2259ec96a24c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.17.13","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.2","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.17.13"},{"status":"affected","introduced":"5.18","fixed":"5.18.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/38b888911e8dc89b89d8147cfb1d2dbe6373bf78","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8089e5e1d18402fb8152d6b6815450a36fffa9b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f122dfe4476890d60b8c679128cd2259ec96a24c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49562","url":"https://www.cve.org/CVERecord?id=CVE-2022-49562","licence":"CVE Terms of Use","modified":"2026-08-05T08:55:46.165Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49562","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49562","licence":"Public domain","modified":"2026-08-04T10:17:51.923Z"}],"updatedAt":"2026-11-25T22:58:20.733Z","epss":{"score":0.0028,"percentile":0.21977,"date":"2026-12-01T12:00:22.000Z"}}