CVE-2022-49562

CVE-2022-49562

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
18.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00272 · 18.6th percentile
Published
2025-02-26T12:01Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 5.2, < 5.17.135.17.13
linux/linux_kernel≥ 5.18, < 5.18.25.18.2
References (3)
EPSS history
Timeline
  • 26 FEB 02:14Z
    KVM: x86: Use __try_cmpxchg_user() to update guest PTE A/D bits
    cvelistv5