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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-28)
- **CWE:** CWE-129
- **Published:** 2024-06-19T13:35:26.753Z
- **Modified:** 2026-08-05T11:32:46.140Z

## Who should check

- Anyone running Linux \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 4baae687a20ef2b82fde12de3c04461e6f2521d6; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< f9caccdd42e999b74303c9b0643300073ed5d319; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 2d0962d05c93de391ce85f6e764df895f47c8918; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 94024332a129c6e4275569d85c0c1bfb2ae2d71b; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 485d65e1357123a697c591a5aeb773994b247ad7; 74dd45122b84479eee50bd0956ae8bc5799c9f8a; e801f81cee3c8901f52ee48c6329802b28fbb49c; d73d81447c6651904dd4a9e3fd88651ff174c1b7; 4646175c19fd019b773444a11ff62748eb83745b; \>= 5.4.174, \< 5.5; …
- Anyone running Linux 5.17

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

## Affected and fixed versions

- Linux: \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 4baae687a20ef2b82fde12de3c04461e6f2521d6; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< f9caccdd42e999b74303c9b0643300073ed5d319; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 2d0962d05c93de391ce85f6e764df895f47c8918; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 94024332a129c6e4275569d85c0c1bfb2ae2d71b; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 485d65e1357123a697c591a5aeb773994b247ad7; 74dd45122b84479eee50bd0956ae8bc5799c9f8a; e801f81cee3c8901f52ee48c6329802b28fbb49c; d73d81447c6651904dd4a9e3fd88651ff174c1b7; 4646175c19fd019b773444a11ff62748eb83745b; \>= 5.4.174, \< 5.5; … (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-38556. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-38556.md
Affected: Linux >= 8e715cd613a1e872b9d918e912d90b399785761a, < 4baae687a20ef2b82fde12de3c04461e6f2521d6; >= 8e715cd613a1e872b9d918e912d90b399785761a, < f9caccdd42e999b74303c9b0643300073ed5d319; >= 8e715cd613a1e872b9d918e912d90b399785761a, < 2d0962d05c93de391ce85f6e764df895f47c8918; >= 8e715cd613a1e872b9d918e…
Fixed in: Linux 4baae687a20ef2b82fde12de3c04461e6f2521d6, Linux 2d0962d05c93de391ce85f6e764df895f47c8918, Linux 94024332a129c6e4275569d85c0c1bfb2ae2d71b, Linux 485d65e1357123a697c591a5aeb773994b247ad7, Linux 5.5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-38556 being exploited?

There is no confirmed exploitation: CVE-2024-38556 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-38556?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-38556?

Linux \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 4baae687a20ef2b82fde12de3c04461e6f2521d6; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< f9caccdd42e999b74303c9b0643300073ed5d319; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 2d0962d05c93de391ce85f6e764df895f47c8918; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 94024332a129c6e4275569d85c0c1bfb2ae2d71b; \>= 8e715cd613a1e872b9d918e912d90b399785761a, \< 485d65e1357123a697c591a5aeb773994b247ad7; 74dd45122b84479eee50bd0956ae8bc5799c9f8a; e801f81cee3c8901f52ee48c6329802b28fbb49c; d73d81447c6651904dd4a9e3fd88651ff174c1b7; 4646175c19fd019b773444a11ff62748eb83745b; \>= 5.4.174, \< 5.5; …; Linux 5.17.

### Is there a fix for CVE-2024-38556?

Yes. Fixed in Linux 4baae687a20ef2b82fde12de3c04461e6f2521d6, Linux 2d0962d05c93de391ce85f6e764df895f47c8918, Linux 94024332a129c6e4275569d85c0c1bfb2ae2d71b, Linux 485d65e1357123a697c591a5aeb773994b247ad7, Linux 5.5. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-38556?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-38556>

HTML: <https://flawdb.com/CVE-2024-38556> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-38556>
