CVE-2022-49562 Details
Description
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.
A vulnerability in the Linux kernel's KVM component for x86 architecture has been addressed. The issue involved the incorrect handling of guest Page Table Entry (PTE) Access/Dirty bits. Previously, the PTE was mapped into the kernel address space to update these bits, which was conceptually flawed. This approach worked for the original scenario of backing guest memory with /dev/mem' but resulted in accessing arbitrary physical frame numbers in most other VM_PFNMAP cases. The vulnerability has been resolved by using the newly introduced __try_cmpxchg_user() function to update the guest PTE A/D bits more accurately.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/38b888911e8dc89b89d8147cfb1d2dbe6373bf78 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8089e5e1d18402fb8152d6b6815450a36fffa9b0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f122dfe4476890d60b8c679128cd2259ec96a24c | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.2, < 5.17.13 >= 5.18, < 5.18.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 22, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |