What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.149, 6.1.76, 6.6.15, 6.7.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-52667 or the next vulnerability affects your stack