7.8high
net/mlx5e: fix a potential double-free in fs_any_create_groups
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: fix a potential double-free in fs_any_create_groups When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_any_create_groups() will free ft->g. However, its caller fs_any_create_table() will free ft->g again through calling mlx5e_destroy_flow_table(), which will lead to a double-free. Fix this by setting ft->g to NULL in fs_any_create_groups().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 before 72a729868592752b5a294d27453da264106983b1, from 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 before b2fa86b2aceb4bc9ada51cea90f61546d7512cbe, from 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 before 2897c981ee63e1be5e530b1042484626a10b26d8, from 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 before 65a4ade8a6d205979292e88beeb6a626ddbd4779, from 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 before aef855df7e1bbd5aa4484851561211500b22707e, 5.13 Not affected: before 5.13, from 5.15.149 up to 5.15.*, from 6.1.76 up to 6.1.*, from 6.6.15 up to 6.6.*, from 6.7.3 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 5.13 before 5.15.149, from 5.16 before 6.1.76, from 6.2 before 6.6.15, from 6.7 before 6.7.3, 6.8 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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/mlx5e: fix a potential double-free in fs_any_create_groups When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_any_create_groups() will free ft->g. However, its caller fs_any_create_table() will free ft->g again through calling mlx5e_destroy_flow_table(), which will lead to a double-free. Fix this by setting ft->g to NULL in fs_any_create_groups().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5e: corrige una posible double free en fs_any_create_groups Cuando kcalloc() para ft->g tiene éxito pero kvzalloc() para in falla, fs_any_create_groups() liberará ft-> gramo. Sin embargo, su llamador fs_any_create_table() liberará ft->g nuevamente llamando a mlx5e_destroy_flow_table(), lo que conducirá a un double free. Solucione este problema configurando ft->g en NULL en fs_any_create_groups().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52667 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-52667 changed 2026-08-04 | Public domain |