Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-49884

published high CVSS 3.1 · 7.8

KVM: Initialize gfn_to_pfn_cache locks in dedicated helper

Published
01 May 2025, 14:10:30 UTC
Updated
05 Aug 2026, 08:56:33 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux982ed0de4753ed6e71dbd40f82a5a066baf133ed to < 61242001d6c9c253df7645dab090842d8da08764 · 982ed0de4753ed6e71dbd40f82a5a066baf133ed to < 52491a38b2c2411f3f0229dc6ad610349c704a41 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 6.0.8 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: KVM: Initialize gfn_to_pfn_cache locks in dedicated helper Move the gfn_to_pfn_cache lock initialization to another helper and call the new helper during VM/vCPU creation. There are race conditions possible due to kvm_gfn_to_pfn_cache_init()'s ability to re-initialize the cache's locks. For example: a race between ioctl(KVM_XEN_HVM_EVTCHN_SEND) and kvm_gfn_to_pfn_cache_init() leads to a corrupted shinfo gpc lock. (thread 1) | (thread 2) | kvm_xen_set_evtchn_fast | read_lock_irqsave(&gpc->lock, ...) | | kvm_gfn_to_pfn_cache_init | rwlock_init(&gpc->lock) read_unlock_irqrestore(&gpc->lock, ...) | Rename "cache_init" and "cache_destroy" to activate+deactivate to avoid implying that the cache really is destroyed/freed. Note, there more races in the newly named kvm_gpc_activate() that will be addressed separately. [sean: call out that this is a bug fix]

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is triggered via KVM ioctls (KVM_XEN_HVM_EVTCHN_SEND racing with KVM_XEN_HVM_SET_ATTR / gpc activate) on a VM fd from /dev/kvm, which requires local process access. AC:L - The attacker fully controls both sides of the race by running concurrent threads that issue EVTCHN_SEND while deactivating/reactivating the shared_info gfn_to_pfn_cache, so success does not depend on external conditions. PR:L - Exploitation needs only the ability to open /dev/kvm and create a VM (typically kvm-group membership); no CAP_SYS_ADMIN or real root is required along the ioctl path. UI:N - The attacker performs the ioctls directly against their own VM; no action by another user is required. S:U - The clear attack is host userspace with KVM access corrupting host kernel lock state, which is privilege escalation within the same security authority rather than a guest-to-host escape. C:H - Re-initializing an rwlock while it is held corrupts kernel synchronization state and can yield use-after-free / memory-corruption primitives (as related gpc races explicitly warn), enabling arbitrary confidentiality impact. I:H - Corrupted gpc locks and the resulting memory corruption can be leveraged for arbitrary kernel writes or control-flow hijacking, not merely a benign state inconsistency. A:H - Unlocking or using a re-initialized rwlock reliably causes kernel oops/BUG, hangs, or panic; the related inactive-cache race also demonstrates a direct NULL deref crash path.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 982ed0de4753ed6e71dbd40f82a5a066baf133ed to < 61242001d6c9c253df7645dab090842d8da08764 (affected · git)982ed0de4753ed6e71dbd40f82a5a066baf133ed to < 52491a38b2c2411f3f0229dc6ad610349c704a41 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.17 (affected)0 to < 5.17 (unaffected · semver)6.0.8 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

KVM: Initialize gfn_to_pfn_cache locks in dedicated helper

Provenance

Schema
5.2
Searchable
yes
Content hash
6d2b734dd91d5bf3ee55caf0deebd4919cf838c3bc05eeb2c3a6caa945f878d5
Ingested
23 Sep 2026, 08:04:21 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected