# CVE-2023-53546: net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-04T15:16:54.132Z
- Modified: 2026-06-17T06:45:34.617Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx

when mlx5_cmd_exec failed in mlx5dr_cmd_create_reformat_ctx, the memory
pointed by 'in' is not released, which will cause memory leak. Move memory
release after mlx5_cmd_exec.

(As written by CVE List.)

## Affected

- Linux Linux: from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 800d8c96bf997da5eb76ccf8d88795c4231c83fb; from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 165159854757dbae0dfd1812b27051da35aa6223; from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 00cecb0a8f9e7a21754d5ad85813ab6b47b3308f; from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 3169c3854397f3070a63b1b772db16dcb8cba7b4; from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 622d71d99124e69f7bf2e2b7a89f5f444a24d235; from 1d9186476e12c85dc81a0f01f5c614a9683af7f2 before 5dd77585dd9d0e03dd1bceb95f0269a7eaf6b936; 5.4 (not affected: before 5.4; from 5.4.253 up to 5.4.*; from 5.10.190 up to 5.10.*; from 5.15.126 up to 5.15.*; from 6.1.45 up to 6.1.*; from 6.4.10 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 5.4 before 5.4.253; from 5.5 before 5.10.190; from 5.11 before 5.15.126; from 5.16 before 6.1.45; from 6.2 before 6.4.10; 6.5

## References

- <https://git.kernel.org/stable/c/800d8c96bf997da5eb76ccf8d88795c4231c83fb> (patch)
- <https://git.kernel.org/stable/c/165159854757dbae0dfd1812b27051da35aa6223> (patch)
- <https://git.kernel.org/stable/c/00cecb0a8f9e7a21754d5ad85813ab6b47b3308f> (patch)
- <https://git.kernel.org/stable/c/3169c3854397f3070a63b1b772db16dcb8cba7b4> (patch)
- <https://git.kernel.org/stable/c/622d71d99124e69f7bf2e2b7a89f5f444a24d235> (patch)
- <https://git.kernel.org/stable/c/5dd77585dd9d0e03dd1bceb95f0269a7eaf6b936> (patch)

## Sources

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

---

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