---
id: CVE-2022-49774
title: 'KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()

  Should not call eventfd_ctx_put() in case of error.

  [Introduce new goto target instead. - Paolo]
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 2fd6df2f2b47d4301b1ee0fe9d627d1c061a5988 <
    d76f46f47dfde220712d1420ee5dbc546c8fc674
  - >-
    Linux >= 2fd6df2f2b47d4301b1ee0fe9d627d1c061a5988 <
    7353633814f6e5b4899fb9ee1483709d6bb0e1cd
  - Linux 5.19
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T19:47:22.413661Z'
published: '2025-05-01'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:49:43.522Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2022-49774'
references:
  - url: 'https://git.kernel.org/stable/c/d76f46f47dfde220712d1420ee5dbc546c8fc674'
  - url: 'https://git.kernel.org/stable/c/7353633814f6e5b4899fb9ee1483709d6bb0e1cd'
tags:
  - cve.org
epss: 0.0017
epssPercentile: 0.06462
ingestedAt: '2026-11-05T22:38:31.589Z'
---

## Overview

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

KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()

Should not call eventfd_ctx_put() in case of error.

[Introduce new goto target instead. - Paolo]

## Affected

- `Linux >= 2fd6df2f2b47d4301b1ee0fe9d627d1c061a5988 < d76f46f47dfde220712d1420ee5dbc546c8fc674`
- `Linux >= 2fd6df2f2b47d4301b1ee0fe9d627d1c061a5988 < 7353633814f6e5b4899fb9ee1483709d6bb0e1cd`
- `Linux 5.19`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
