net/mlx5: fix potential memory leak in mlx5e_init_rep_rx
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.456.4.106.5In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: fix potential memory leak in mlx5e_init_rep_rx
The memory pointed to by the priv->rx_res pointer is not freed in the error path of mlx5e_init_rep_rx, which can lead to a memory leak. Fix by freeing the memory in the error path, thereby making the error path identical to mlx5e_cleanup_rep_rx().
From the CVE record · Linux
The Linux kernel's mlx5e_init_rep_rx function does not free memory in its error path, potentially causing a memory leak. The input does not specify how an attacker could trigger this path or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the mlx5e_init_rep_rx fix; affected versions are not specified.