# CVE-2022-50227: KVM: x86/xen: Initialize Xen timer only once

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 11% of CVEs (2026-11-30)
- Published: 2025-06-18T11:03:59.885Z
- Modified: 2026-08-05T08:57:47.222Z
- Assigned by: Linux

## Description

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

KVM: x86/xen: Initialize Xen timer only once

Add a check for existing xen timers before initializing a new one.

Currently kvm_xen_init_timer() is called on every
KVM_XEN_VCPU_ATTR_TYPE_TIMER, which is causing the following ODEBUG
crash when vcpu->arch.xen.timer is already set.

ODEBUG: init active (active state 0)
object type: hrtimer hint: xen_timer_callbac0
RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:502
Call Trace:
__debug_object_init
debug_hrtimer_init
debug_init
hrtimer_init
kvm_xen_init_timer
kvm_xen_vcpu_set_attr
kvm_arch_vcpu_ioctl
kvm_vcpu_ioctl
vfs_ioctl

(As written by CVE List.)

## Affected

- Linux Linux: from 536395260582be7443b0b35b0bbb89ffe3947f62 before 9a9b5771e930f408c3419799000f76a9abaf2278; from 536395260582be7443b0b35b0bbb89ffe3947f62 before af735db31285fa699384c649be72a9f32ecbb665; 5.19 (not affected: before 5.19; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.19 before 5.19.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9a9b5771e930f408c3419799000f76a9abaf2278> (patch)
- <https://git.kernel.org/stable/c/af735db31285fa699384c649be72a9f32ecbb665> (patch)

## Sources

- CVE List: [CVE-2022-50227](https://www.cve.org/CVERecord?id=CVE-2022-50227), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50227](https://nvd.nist.gov/vuln/detail/CVE-2022-50227), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50227 · Whole record: https://cve.day/CVE-2022-50227.json · Rebuilt by cve.day 2026-11-25T22:58:21.114Z
