CVE-2022-50117

published 18 Jun 2025 · updated 11 May 2026

vfio: Split migration ops from main device ops

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6e97eba8ad8748fabb795cffc5d9e1a7dcfd7367 and Kernel bba6b12d73d36e0ddbc2c3ac5668a667b00d4345.

In the Linux kernel, the following vulnerability has been resolved: vfio: Split migration ops from main device ops vfio core checks whether the driver sets some migration op (e.g. set_state/get_state) and accordingly calls its op. However, currently mlx5 driver sets the above ops without regards to its migration caps. This might lead to unexpected usage/Oops if user space may call to the above ops even if the driver doesn't support migration. As for example, the migration state_mutex is not initialized in that case. The cleanest way to manage that seems to split the migration ops from the main device ops, this will let the driver setting them separately from the main ops when it's applicable. As part of that, validate ops construction on registration and include a check for VFIO_MIGRATION_STOP_COPY since the uAPI claims it must be set in migration_flags. HISI driver was changed as well to match this scheme. This scheme may enable down the road to come with some extra group of ops (e.g. DMA log) that can be set without regards to the other options based on driver caps.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.18, >=6fadb021266d03c5fd7bca2cfa1607efd246dad1 <6e97eba8ad8748fabb795cffc5d9e1a7dcfd7367, >=6fadb021266d03c5fd7bca2cfa1607efd246dad1 <bba6b12d73d36e0ddbc2c3ac5668a667b00d43456e97eba8ad8748fabb795cffc5d9e1a7dcfd7367, bba6b12d73d36e0ddbc2c3ac5668a667b00d4345

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50117 severity on Zeptric[![CVE-2022-50117](https://zeptric.io/badge/cve/CVE-2022-50117.svg)](https://zeptric.io/cve/CVE-2022-50117)