CVE-2023-54015 net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device
A use-after-free vulnerability in the Linux kernel mlx5 driver allows local attackers to potentially execute code or escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54015?
CVE-2023-54015 is an use after free vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2023-54015?
How do I fix CVE-2023-54015?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-54015 being exploited?
There is no known exploitation of CVE-2023-54015 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54015, DEBIAN-CVE-2023-54015, GHSA-mx7v-5j4q-68wr, UBUNTU-CVE-2023-54015.