# CVE-2024-56742: vfio/mlx5: Fix an unwind issue in mlx5vf_add_migration_pages()

- Severity: Low 3.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-12-29T11:30:10.538Z
- Modified: 2026-10-30T13:17:48.790Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 6fadb021266d03c5fd7bca2cfa1607efd246dad1 before 549384162ed7e84bdefa004b589215d18b0190c5; from 6fadb021266d03c5fd7bca2cfa1607efd246dad1 before 465e06ffbb681f6fe34ca3aeba4b609677c3d4c1; from 6fadb021266d03c5fd7bca2cfa1607efd246dad1 before 769fe4ce444b646b0bf6ac308de80686c730c7df; from 6fadb021266d03c5fd7bca2cfa1607efd246dad1 before c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5; from 6fadb021266d03c5fd7bca2cfa1607efd246dad1 before 22e87bf3f77c18f5982c19ffe2732ef0c7a25f16; 5.18 (not affected: before 5.18; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.18 before 6.11.11; from 6.12 before 6.12.2

## Every score

- CISA-ADP: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/549384162ed7e84bdefa004b589215d18b0190c5>
- <https://git.kernel.org/stable/c/465e06ffbb681f6fe34ca3aeba4b609677c3d4c1>
- <https://git.kernel.org/stable/c/769fe4ce444b646b0bf6ac308de80686c730c7df> (patch)
- <https://git.kernel.org/stable/c/c44f1b2ddfa81c8d7f8e9b6bc76c427bc00e69d5> (patch)
- <https://git.kernel.org/stable/c/22e87bf3f77c18f5982c19ffe2732ef0c7a25f16> (patch)

## Sources

- CVE List: [CVE-2024-56742](https://www.cve.org/CVERecord?id=CVE-2024-56742), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-56742](https://nvd.nist.gov/vuln/detail/CVE-2024-56742), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-56742 · Whole record: https://cve.day/CVE-2024-56742.json · Rebuilt by cve.day 2026-11-25T22:58:50.560Z
