# CVE-2024-38556: net/mlx5: Add a timeout to acquire the command queue semaphore

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-06-19T13:35:26.753Z
- Modified: 2026-08-05T11:32:46.140Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 8e715cd613a1e872b9d918e912d90b399785761a before 4baae687a20ef2b82fde12de3c04461e6f2521d6; from 8e715cd613a1e872b9d918e912d90b399785761a before f9caccdd42e999b74303c9b0643300073ed5d319; from 8e715cd613a1e872b9d918e912d90b399785761a before 2d0962d05c93de391ce85f6e764df895f47c8918; from 8e715cd613a1e872b9d918e912d90b399785761a before 94024332a129c6e4275569d85c0c1bfb2ae2d71b; from 8e715cd613a1e872b9d918e912d90b399785761a before 485d65e1357123a697c591a5aeb773994b247ad7; 74dd45122b84479eee50bd0956ae8bc5799c9f8a; e801f81cee3c8901f52ee48c6329802b28fbb49c; d73d81447c6651904dd4a9e3fd88651ff174c1b7; 4646175c19fd019b773444a11ff62748eb83745b; from 5.4.174 before 5.5; from 5.10.94 before 5.11; from 5.15.17 before 5.16; and 2 more (not affected: before 5.17; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.4.174 before 5.5; from 5.10.94 before 5.11; from 5.15.17 before 5.16; from 5.16.3 up to 6.1.93; from 6.2 up to 6.6.33; from 6.7 up to 6.8.12; from 6.9 up to 6.9.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/4baae687a20ef2b82fde12de3c04461e6f2521d6> (patch)
- <https://git.kernel.org/stable/c/f9caccdd42e999b74303c9b0643300073ed5d319> (patch)
- <https://git.kernel.org/stable/c/2d0962d05c93de391ce85f6e764df895f47c8918> (patch)
- <https://git.kernel.org/stable/c/94024332a129c6e4275569d85c0c1bfb2ae2d71b> (patch)
- <https://git.kernel.org/stable/c/485d65e1357123a697c591a5aeb773994b247ad7> (patch)

## Sources

- CVE List: [CVE-2024-38556](https://www.cve.org/CVERecord?id=CVE-2024-38556), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-38556](https://nvd.nist.gov/vuln/detail/CVE-2024-38556), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-38556 · Whole record: https://cve.day/CVE-2024-38556.json · Rebuilt by cve.day 2026-11-25T22:58:42.013Z
