# vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()

CVE record · `CVE-2024-56742`

- **Identifiers:** `CVE-2024-56742`
- **State:** Confirmed
- **Severity:** CVSS 3.3 Low
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-401](https://cwe.mitre.org/data/definitions/401.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 29 Dec 2024
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 29 Dec 2024, 11:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `6fadb021266d03c5fd7bca2cfa1607efd246dad1 to before 549384162ed7e84bdefa004b589215d18b0190c5` (git)
  - affected: `6fadb021266d03c5fd7bca2cfa1607efd246dad1 to before 465e06ffbb681f6fe34ca3aeba4b609677c3d4c1` (git)
  - affected: `6fadb021266d03c5fd7bca2cfa1607efd246dad1 to before 769fe4ce444b646b0bf6ac308de80686c730c7df` (git)
  - affected: `6fadb021266d03c5fd7bca2cfa1607efd246dad1 to before c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5` (git)
  - affected: `6fadb021266d03c5fd7bca2cfa1607efd246dad1 to before 22e87bf3f77c18f5982c19ffe2732ef0c7a25f16` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.18`
  - unaffected: `before 5.18` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.160 to 6.6.*, inclusive` (semver)
  - unaffected: `6.11.11 to 6.11.*, inclusive` (semver)
  - unaffected: `6.12.2 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel vfio/mlx5 driver from 5.18 leaks memory in mlx5vf_add_migration_pages() when pages fail to be added to the SG table. The source gives few details on attacker access or impact. Upgrade to 6.1.191, 6.6.160, 6.11.11, 6.12.2, or a later fixed release.

Written 13 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 3.3 Low, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0025, the 16th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 29 Dec 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2024-56742](https://www.cve.org/CVERecord?id=CVE-2024-56742)
- [NVD: CVE-2024-56742](https://nvd.nist.gov/vuln/detail/CVE-2024-56742)

### References from the CNA

- <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>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2024-56742>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2024-56742/>. Everything for agents: <https://agentprime.io/llms.txt>.
