vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
Fix an unwind issue in mlx5vf_add_migration_pages().
If a set of pages is allocated but fails to be added to the SG table, they need to be freed to prevent a memory leak.
Any pages successfully added to the SG table will be freed as part of mlx5vf_free_data_buffer().
From the CVE record · Linux
In the Linux kernel's vfio/mlx5 code, pages allocated by mlx5vf_add_migration_pages() can leak if adding them to the SG table fails. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the vfio/mlx5 fix; affected versions are not specified.