CVE-2023-52667·Kernel vulnerability
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().
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.3
- Published
- 2024-05-17
Affected versions
From: 6.7
Until: 6.7.3
Fixed in: 6.7.3
How to fix this CVE
Update your Linux kernel to version 6.7.3 or later to resolve a memory management flaw in the MLX5 Ethernet driver's flow table creation logic. This vulnerability allows local attackers to trigger a double-free condition that could crash the system or potentially execute code with kernel privileges. Prioritize this update for systems running kernel versions 6.7 through 6.7.2.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r — if it shows 6.7.0, 6.7.1, or 6.7.2, your system is vulnerable.
- Verify MLX5 driver is loaded: lsmod | grep mlx5 — if no output, this vulnerability has no impact on your system.
- Search kernel logs for memory allocation failures in flow table setup: sudo dmesg | grep -i 'mlx5\|kvzalloc\|kcalloc' — look for error messages occurring during network device initialization.
- After patching, confirm kernel version: uname -r — should show 6.7.3 or later, and verify driver reloaded: sudo modprobe -r mlx5_core && sudo modprobe mlx5_core.
FAQ
What is CVE-2023-52667?
This is a double-free vulnerability in the Linux kernel's MLX5 Ethernet driver flow table initialization. When memory allocation partially fails during flow group creation, the error handler frees memory that is subsequently freed again by the calling function, potentially leading to kernel crash or privilege escalation.
Is CVE-2023-52667 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it remains a high-severity local privilege escalation risk.
What versions of Kernel are affected by CVE-2023-52667?
Linux kernel versions 6.7, 6.7.1, and 6.7.2 are vulnerable. Kernel 6.7.3 and later versions contain the fix.
How do I check if my server is vulnerable to CVE-2023-52667?
Run 'uname -r' to check your kernel version; if it returns 6.7.0, 6.7.1, or 6.7.2 and 'lsmod | grep mlx5' shows the driver is loaded, your system is vulnerable.
Does Defensia detect CVE-2023-52667?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2023-52667 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2897c981ee63e1be5e530b1042484626a10b26d8
- https://git.kernel.org/stable/c/65a4ade8a6d205979292e88beeb6a626ddbd4779
- https://git.kernel.org/stable/c/72a729868592752b5a294d27453da264106983b1
- https://git.kernel.org/stable/c/aef855df7e1bbd5aa4484851561211500b22707e
- https://git.kernel.org/stable/c/b2fa86b2aceb4bc9ada51cea90f61546d7512cbe
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52667. Free for 1 server.
Get started free