CVE-2024-38556

net/mlx5: Add a timeout to acquire the command queue semaphore

7.8 high EPSS 0.26%

Published 19 Jun 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-38556

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-2024-38556 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: Add a timeout to acquire the command queue semaphore

Prevent forced completion handling on an entry that has not yet been assigned an index, causing an out of bounds access on idx = -22. Instead of waiting indefinitely for the sem, blocking flow now waits for index to be allocated or a sem acquisition timeout before beginning the timer for FW completion.

Kernel log example: mlx5_core 0000:06:00.0: wait_func_handle_exec_timeout:1128:(pid 185911): cmd[-22]: CREATE_UCTX(0xa04) No done completion

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

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

The assessment of CISA (SSVC, 21 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8e715cd613a1e872b9d918e912d90b399785761a, before 4baae687a20ef2b82fde12de3c04461e6f2521d6
affected from 8e715cd613a1e872b9d918e912d90b399785761a, before f9caccdd42e999b74303c9b0643300073ed5d319
affected from 8e715cd613a1e872b9d918e912d90b399785761a, before 2d0962d05c93de391ce85f6e764df895f47c8918
affected from 8e715cd613a1e872b9d918e912d90b399785761a, before 94024332a129c6e4275569d85c0c1bfb2ae2d71b
affected from 8e715cd613a1e872b9d918e912d90b399785761a, before 485d65e1357123a697c591a5aeb773994b247ad7
affected 74dd45122b84479eee50bd0956ae8bc5799c9f8a
affected e801f81cee3c8901f52ee48c6329802b28fbb49c
affected d73d81447c6651904dd4a9e3fd88651ff174c1b7
affected 4646175c19fd019b773444a11ff62748eb83745b
affected from 5.4.174, before 5.5
affected from 5.10.94, before 5.11
affected from 5.15.17, before 5.16
affected from 5.16.3, before 5.17
Other versions: unaffected
Linux
affected 5.17
unaffected before 5.17
unaffected from 6.1.93 up to and including 6.1.*
unaffected from 6.6.33 up to and including 6.6.*
unaffected from 6.8.12 up to and including 6.8.*
unaffected from 6.9.3 up to and including 6.9.*
unaffected 6.10 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-2024-38556 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38556

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-2024-38556
trivy image --scanners vuln IMAGE | grep CVE-2024-38556

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-2024-38556 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.