{"id":"CVE-2024-38556","aliases":["CVE-2024-38556"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: Add a timeout to acquire the command queue semaphore","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Add a timeout to acquire the command queue semaphore\n\nPrevent forced completion handling on an entry that has not yet been\nassigned an index, causing an out of bounds access on idx = -22.\nInstead of waiting indefinitely for the sem, blocking flow now waits for\nindex to be allocated or a sem acquisition timeout before beginning the\ntimer for FW completion.\n\nKernel log example:\nmlx5_core 0000:06:00.0: wait_func_handle_exec_timeout:1128:(pid 185911): cmd[-22]: CREATE_UCTX(0xa04) No done completion","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Add a timeout to acquire the command queue semaphore\n\nPrevent forced completion handling on an entry that has not yet been\nassigned an index, causing an out of bounds access on idx = -22.\nInstead of waiting indefinitely for the sem, blocking flow now waits for\nindex to be allocated or a sem acquisition timeout before beginning the\ntimer for FW completion.\n\nKernel log example:\nmlx5_core 0000:06:00.0: wait_func_handle_exec_timeout:1128:(pid 185911): cmd[-22]: CREATE_UCTX(0xa04) No done completion","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5: agrega un tiempo de espera para adquirir el semáforo de la cola de comandos. Evita el manejo de finalización forzada en una entrada a la que aún no se le ha asignado un índice, lo que provoca un acceso fuera de los límites en idx = -22. En lugar de esperar indefinidamente el sem, el flujo de bloqueo ahora espera a que se asigne el índice o a que se agote el tiempo de espera de adquisición del sem antes de iniciar el temporizador para completar el FW. Ejemplo de registro del kernel: mlx5_core 0000:06:00.0: wait_func_handle_exec_timeout:1128:(pid 185911): cmd[-22]: CREATE_UCTX(0xa04) No se completó","source":"nvd"}],"published":"2024-06-19T13:35:26.753Z","modified":"2026-08-05T11:32:46.140Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"8e715cd613a1e872b9d918e912d90b399785761a","fixed":"4baae687a20ef2b82fde12de3c04461e6f2521d6","status":"affected"},{"type":"git","introduced":"8e715cd613a1e872b9d918e912d90b399785761a","fixed":"f9caccdd42e999b74303c9b0643300073ed5d319","status":"affected"},{"type":"git","introduced":"8e715cd613a1e872b9d918e912d90b399785761a","fixed":"2d0962d05c93de391ce85f6e764df895f47c8918","status":"affected"},{"type":"git","introduced":"8e715cd613a1e872b9d918e912d90b399785761a","fixed":"94024332a129c6e4275569d85c0c1bfb2ae2d71b","status":"affected"},{"type":"git","introduced":"8e715cd613a1e872b9d918e912d90b399785761a","fixed":"485d65e1357123a697c591a5aeb773994b247ad7","status":"affected"},{"type":"git","version":"74dd45122b84479eee50bd0956ae8bc5799c9f8a","status":"affected"},{"type":"git","version":"e801f81cee3c8901f52ee48c6329802b28fbb49c","status":"affected"},{"type":"git","version":"d73d81447c6651904dd4a9e3fd88651ff174c1b7","status":"affected"},{"type":"git","version":"4646175c19fd019b773444a11ff62748eb83745b","status":"affected"},{"type":"semver","introduced":"5.4.174","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.10.94","fixed":"5.11","status":"affected"},{"type":"semver","introduced":"5.15.17","fixed":"5.16","status":"affected"},{"type":"semver","introduced":"5.16.3","fixed":"5.17","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.1.93","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.33","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.12","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.3","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4.174","fixed":"5.5"},{"status":"affected","introduced":"5.10.94","fixed":"5.11"},{"status":"affected","introduced":"5.15.17","fixed":"5.16"},{"status":"affected","introduced":"5.16.3","lastAffected":"6.1.93"},{"status":"affected","introduced":"6.2","lastAffected":"6.6.33"},{"status":"affected","introduced":"6.7","lastAffected":"6.8.12"},{"status":"affected","introduced":"6.9","lastAffected":"6.9.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4baae687a20ef2b82fde12de3c04461e6f2521d6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9caccdd42e999b74303c9b0643300073ed5d319","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d0962d05c93de391ce85f6e764df895f47c8918","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/94024332a129c6e4275569d85c0c1bfb2ae2d71b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/485d65e1357123a697c591a5aeb773994b247ad7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-21T14:39:36.786Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38556","url":"https://www.cve.org/CVERecord?id=CVE-2024-38556","licence":"CVE Terms of Use","modified":"2026-08-05T11:32:46.140Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38556","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38556","licence":"Public domain","modified":"2026-08-04T11:18:43.907Z"}],"updatedAt":"2026-11-25T22:58:42.013Z","epss":{"score":0.00259,"percentile":0.18775,"date":"2026-12-01T12:00:22.000Z"}}