Menu

Star on GitHub · 3.2k

CVE-2022-49882

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: KVM: Reject attempts to consume or refresh inactive gfn_to_pfn_cache Reject kvm_gpc_check() and kvm_gpc_refresh() if the cache…

Published May 1, 2025CWE-416EPSS 0.19%

Overview

CVE-2022-49882 is a high-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

KVM: Reject attempts to consume or refresh inactive gfn_to_pfn_cache

Reject kvm_gpc_check() and kvm_gpc_refresh() if the cache is inactive.

Not checking the active flag during refresh is particularly egregious, as

KVM can end up with a valid, inactive cache, which can lead to a variety

of use-after-free bugs, e.g. consuming a NULL kernel pointer or missing

an mmu_notifier invalidation due to the cache not being on the list of

gfns to invalidate.

Note, "active" needs to be set if and only if the cache is on the list

of caches, i.e. is reachable via mmu_notifier events. If a relevant

mmu_notifier event occurs while the cache is "active" but not on the

list, KVM will not acquire the cache's lock and so will not serailize

the mmu_notifier event with active users and/or kvm_gpc_refresh().

A race between KVM_XEN_ATTR_TYPE_SHARED_INFO and KVM_XEN_HVM_EVTCHN_SEND

can be exploited to trigger the bug.

1. Deactivate shinfo

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49882?

CVE-2022-49882 is a high-severity vulnerability. It was published on May 1, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-49882?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49882?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49882?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49882 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all