CVE-2024-56660

net/mlx5: DR, prevent potential error pointer dereference

Medium · published December 27, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.9
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00220 · 11.9th percentile
Published
2024-12-27T15:06Z
EPSS history
Timeline
  • 27 DEC 15:06Z
    net/mlx5: DR, prevent potential error pointer dereference
    cvelistv5