What’s Vulnerable › Vulnerabilities
CVE-2024-56660: net/mlx5: DR, prevent potential error pointer dereference
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-27 · updated 2026-06-17
- Weakness: CWE-476
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().
Affected products
- 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-rc1, 6.13-rc2 — fixed in 6.1.121, 6.12.6, 6.6.67
How to fix
Upgrade to a fixed version: Linux kernel 6.1.121, 6.12.6, 6.6.67. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/11776cff0b563c8b8a4fa76cab620bfb633a8cb8
- https://git.kernel.org/stable/c/325cf73a1b449fea3158ab99d03a7a717aad1618
- https://git.kernel.org/stable/c/61f720e801443d4e2a3c0261eda4ad8431458dca
- https://git.kernel.org/stable/c/a59c61a1869ceefc65ef02886f91e8cd0062211f
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Get alerted when CVE-2024-56660 or the next vulnerability affects your stack