What’s Vulnerable › Vulnerabilities
CVE-2024-56742: vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-29 · updated 2026-10-30
- Weakness: CWE-401
Description
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().
Affected products
- Linux kernel: from 5.18 before 6.11.11; from 6.12 before 6.12.2 — fixed in 6.11.11, 6.12.2
- Linux: 5.18 — fixed in 6.13
How to fix
Upgrade to a fixed version: Linux kernel 6.11.11, 6.12.2; Linux 6.13. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/22e87bf3f77c18f5982c19ffe2732ef0c7a25f16
- https://git.kernel.org/stable/c/465e06ffbb681f6fe34ca3aeba4b609677c3d4c1
- https://git.kernel.org/stable/c/549384162ed7e84bdefa004b589215d18b0190c5
- https://git.kernel.org/stable/c/769fe4ce444b646b0bf6ac308de80686c730c7df
- https://git.kernel.org/stable/c/c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5
Get alerted when CVE-2024-56742 or the next vulnerability affects your stack