# CVE-2024-56660: net/mlx5: DR, prevent potential error pointer dereference

- Severity: Medium 5.5 (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:H`
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-12-27T15:06:23.161Z
- Modified: 2026-06-17T08:12:40.677Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: DR, prevent potential error pointer dereference

The dr_domain_add_vport_cap() function generally returns NULL on error
but sometimes we want it to return ERR_PTR(-EBUSY) so the caller can
retry.  The problem here is that "ret" can be either -EBUSY or -ENOMEM
and if it's and -ENOMEM then the error pointer is propogated back and
eventually dereferenced in dr_ste_v0_build_src_gvmi_qpn_tag().

(As written by CVE List.)

## Affected

- Linux Linux: from 11a45def2e197532c46aa908dedd52bc1ee378a2 before 61f720e801443d4e2a3c0261eda4ad8431458dca; from 11a45def2e197532c46aa908dedd52bc1ee378a2 before 325cf73a1b449fea3158ab99d03a7a717aad1618; from 11a45def2e197532c46aa908dedd52bc1ee378a2 before a59c61a1869ceefc65ef02886f91e8cd0062211f; from 11a45def2e197532c46aa908dedd52bc1ee378a2 before 11776cff0b563c8b8a4fa76cab620bfb633a8cb8; 5.16 (not affected: before 5.16; from 6.1.121 up to 6.1.*; from 6.6.67 up to 6.6.*; from 6.12.6 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.16 before 6.1.121; from 6.2 before 6.6.67; from 6.7 before 6.12.6; 6.13

## Every score

- CISA-ADP: 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`
- 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/61f720e801443d4e2a3c0261eda4ad8431458dca> (patch)
- <https://git.kernel.org/stable/c/325cf73a1b449fea3158ab99d03a7a717aad1618> (patch)
- <https://git.kernel.org/stable/c/a59c61a1869ceefc65ef02886f91e8cd0062211f> (patch)
- <https://git.kernel.org/stable/c/11776cff0b563c8b8a4fa76cab620bfb633a8cb8> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

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

---

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