CVE-2023-54015

net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device

No CVSS score yet EPSS 0.22%

Published 24 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-54015

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54015 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fadd59fc50d010145f251db583c7ccef37393d19, before 3dfc1004d9afbf689087ae1eafd88f55481984c7
affected from fadd59fc50d010145f251db583c7ccef37393d19, before d4d10a6df1529b3f446cdada5c25e065f4712756
affected from fadd59fc50d010145f251db583c7ccef37393d19, before 1e755065368000205e6683fa924b2654e99f573b
affected from fadd59fc50d010145f251db583c7ccef37393d19, before eaa365c10459052cbe3e44caa4ad760cb93bd435
affected from fadd59fc50d010145f251db583c7ccef37393d19, before a3a516caef2c5be2f4d171890a8b3415bfab4e5e
affected from fadd59fc50d010145f251db583c7ccef37393d19, before af87194352cad882d787d06fb7efa714acd95427
Other versions: unaffected
Linux
affected 5.0
unaffected before 5.0
unaffected from 5.4.244 up to and including 5.4.*
unaffected from 5.10.181 up to and including 5.10.*
unaffected from 5.15.114 up to and including 5.15.*
unaffected from 6.1.31 up to and including 6.1.*
unaffected from 6.3.5 up to and including 6.3.*
unaffected 6.4 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54015 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54015

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-54015
trivy image --scanners vuln IMAGE | grep CVE-2023-54015

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-54015 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.