High · published May 17, 2024
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().
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 5.13, < 5.15.149 | 5.15.149 |
| linux/linux_kernel | ≥ 5.16, < 6.1.76 | 6.1.76 |
| linux/linux_kernel | ≥ 6.2, < 6.6.15 | 6.6.15 |
| linux/linux_kernel | ≥ 6.7, < 6.7.3 | 6.7.3 |
| linux/linux_kernel | all versions | — |