CVE-2024-56742 vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()
A memory leak in the Linux kernel's vfio/mlx5 driver can lead to resource exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56742?
CVE-2024-56742 is a low-severity denial of service vulnerability in Linux kernel, published on 29 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Weakness: CWE-401
Which versions are affected by CVE-2024-56742?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-56742?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-56742 being exploited?
There is no known exploitation of CVE-2024-56742 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55011, BELL-CVE-2024-56742, DEBIAN-CVE-2024-56742, GHSA-pmwc-7qq9-mj6g, ROOT-OS-DEBIAN-12-CVE-2024-56742, UBUNTU-CVE-2024-56742.