5.5medium
net/mlx5: DR, prevent potential error pointer dereference
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5: DR, evitar la posible desreferencia del puntero de error La función dr_domain_add_vport_cap() generalmente devuelve NULL en caso de error, pero a veces queremos que devuelva ERR_PTR(-EBUSY) para que el autor de la llamada pueda volver a intentarlo. El problema aquí es que "ret" puede ser -EBUSY o -ENOMEM y si es y -ENOMEM, entonces el puntero de error se propaga de vuelta y finalmente se desreferencia en dr_ste_v0_build_src_gvmi_qpn_tag().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56660 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-56660 changed 2026-06-17 | Public domain |