CVE-2023-54015

net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fadd59fc50d010145f251db583c7ccef37393d19 to before 3dfc1004d9afbf689087ae1eafd88f55481984c7Affected
  • fadd59fc50d010145f251db583c7ccef37393d19 to before d4d10a6df1529b3f446cdada5c25e065f4712756Affected
  • fadd59fc50d010145f251db583c7ccef37393d19 to before 1e755065368000205e6683fa924b2654e99f573bAffected
  • fadd59fc50d010145f251db583c7ccef37393d19 to before eaa365c10459052cbe3e44caa4ad760cb93bd435Affected
  • fadd59fc50d010145f251db583c7ccef37393d19 to before a3a516caef2c5be2f4d171890a8b3415bfab4e5eAffected
  • fadd59fc50d010145f251db583c7ccef37393d19 to before af87194352cad882d787d06fb7efa714acd95427Affected
LinuxLinux
  • 5.0Affected
  • before 5.0Not affected
  • 5.4.244 through 5.4.*Not affected
  • 5.10.181 through 5.10.*Not affected
  • 5.15.114 through 5.15.*Not affected
  • 6.1.31 through 6.1.*Not affected
  • 6.3.5 through 6.3.*Not affected
  • 6.4 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.