CVE-2022-49562
HIGHLinux Kernel 5.2-5.17.12, 5.18.0-5.18.1, 5.19 - Memory Corruption via VM_PFNMAP PTE Handling
Title source: llmDescription
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.
References (3)
Core 3
Scores
CVSS v3
7.8
EPSS
0.0027
EPSS Percentile
18.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
Status
published
Products (11)
linux/Kernel
5.18.0 - 5.18.2linux
linux/Kernel
5.2.0 - 5.17.13linux
Linux/Linux
< 5.2
Linux/Linux
5.17.13 - 5.17.*
Linux/Linux
5.18.2 - 5.18.*
Linux/Linux
5.19
Linux/Linux
5.2
Linux/Linux
bd53cb35a3e9adb73a834a36586e9ad80e877767 - 38b888911e8dc89b89d8147cfb1d2dbe6373bf78
Linux/Linux
bd53cb35a3e9adb73a834a36586e9ad80e877767 - 8089e5e1d18402fb8152d6b6815450a36fffa9b0
Linux/Linux
bd53cb35a3e9adb73a834a36586e9ad80e877767 - f122dfe4476890d60b8c679128cd2259ec96a24c
... and 1 more
Published
Feb 26, 2025
Tracked Since
Feb 18, 2026