# CVE-2023-54015: net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device

- Severity: not scored yet
- 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.29%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-12-24T10:55:47.030Z
- Modified: 2026-06-17T06:46:32.550Z
- Assigned by: Linux

## Description

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

net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device

In case devcom allocation is failed, mlx5 is always freeing the priv.
However, this priv might have been allocated by a different thread,
and freeing it might lead to use-after-free bugs.
Fix it by freeing the priv only in case it was allocated by the
running thread.

(As written by CVE List.)

## Affected

- Linux Linux: from fadd59fc50d010145f251db583c7ccef37393d19 before 3dfc1004d9afbf689087ae1eafd88f55481984c7; from fadd59fc50d010145f251db583c7ccef37393d19 before d4d10a6df1529b3f446cdada5c25e065f4712756; from fadd59fc50d010145f251db583c7ccef37393d19 before 1e755065368000205e6683fa924b2654e99f573b; from fadd59fc50d010145f251db583c7ccef37393d19 before eaa365c10459052cbe3e44caa4ad760cb93bd435; from fadd59fc50d010145f251db583c7ccef37393d19 before a3a516caef2c5be2f4d171890a8b3415bfab4e5e; from fadd59fc50d010145f251db583c7ccef37393d19 before af87194352cad882d787d06fb7efa714acd95427; 5.0 (not affected: before 5.0; from 5.4.244 up to 5.4.*; from 5.10.181 up to 5.10.*; from 5.15.114 up to 5.15.*; from 6.1.31 up to 6.1.*; from 6.3.5 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/3dfc1004d9afbf689087ae1eafd88f55481984c7>
- <https://git.kernel.org/stable/c/d4d10a6df1529b3f446cdada5c25e065f4712756>
- <https://git.kernel.org/stable/c/1e755065368000205e6683fa924b2654e99f573b>
- <https://git.kernel.org/stable/c/eaa365c10459052cbe3e44caa4ad760cb93bd435>
- <https://git.kernel.org/stable/c/a3a516caef2c5be2f4d171890a8b3415bfab4e5e>
- <https://git.kernel.org/stable/c/af87194352cad882d787d06fb7efa714acd95427>

## Sources

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

---

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