CVE-2024-56660 net/mlx5: DR, prevent potential error pointer dereference
A null pointer dereference in the Linux kernel's mlx5 driver can cause a system crash, requiring a kernel patch.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56660?
CVE-2024-56660 is a medium-severity vulnerability in Linux kernel, published on 27 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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().
Weakness: CWE-476
Which versions are affected by CVE-2024-56660?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-56660?
Apply the vendor's patch.
Is CVE-2024-56660 being exploited?
There is no known exploitation of CVE-2024-56660 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-54845, BELL-CVE-2024-56660, DEBIAN-CVE-2024-56660, GHSA-4whv-g373-hpgc, ROOT-OS-UBUNTU-2204-CVE-2024-56660, UBUNTU-CVE-2024-56660.