CVE-2022-49562

Source
https://cve.org/CVERecord?id=CVE-2022-49562
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49562.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49562
Downstream
Related
Published
2025-02-26T02:14:06Z
Modified
2026-08-12T03:51:47Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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:

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49562.json"
}
References

Affected packages

Git / 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/cve-osv-conversion/osv-output/CVE-2022-49562.json"

Linux / Kernel

Package

Name
Kernel

Affected 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/cve-osv-conversion/osv-output/CVE-2022-49562.json"