# CVE-2023-52667: net/mlx5e: fix a potential double-free in fs_any_create_groups

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-05-17T14:01:48.454Z
- Modified: 2026-08-05T09:10:56.489Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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().

(As written by CVE List.)

## Affected

- 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 *)
- 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

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/72a729868592752b5a294d27453da264106983b1> (patch)
- <https://git.kernel.org/stable/c/b2fa86b2aceb4bc9ada51cea90f61546d7512cbe> (patch)
- <https://git.kernel.org/stable/c/2897c981ee63e1be5e530b1042484626a10b26d8> (patch)
- <https://git.kernel.org/stable/c/65a4ade8a6d205979292e88beeb6a626ddbd4779> (patch)
- <https://git.kernel.org/stable/c/aef855df7e1bbd5aa4484851561211500b22707e> (patch)

## Sources

- CVE List: [CVE-2023-52667](https://www.cve.org/CVERecord?id=CVE-2023-52667), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52667](https://nvd.nist.gov/vuln/detail/CVE-2023-52667), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-52667 · Whole record: https://cve.day/CVE-2023-52667.json · Rebuilt by cve.day 2026-11-25T22:58:33.963Z
