Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-38555

published high CVSS 3.1 · 7.0

net/mlx5: Discard command completions in internal error

Published
19 Jun 2024, 13:35:26 UTC
Updated
05 Aug 2026, 11:32:45 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux27c79b3a9212cf4ba634c157e07d29548181a208 to < f6fbb8535e990f844371086ab2c1221f71f993d3 · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < 3cb92b0ad73d3f1734e812054e698d655e9581b0 · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < bf8aaf0ae01c27ae3c06aa8610caf91e50393396 · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < 1337ec94bc5a9eed250e33f5f5c89a28a6bfabdb · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < 1d5dce5e92a70274de67a59e1e674c3267f94cd7 · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < 7ac4c69c34240c6de820492c0a28a0bd1494265a · 51d138c2610a236c1ed0059d034ee4c74f452b86 to < db9b31aa9bc56ff0d15b78f7e827d61c4a096e40 · 2e5d24b3bf091802c5456dc8f8f6a6be4493c8ca · 5.10.20 to < 5.10.219 · 5.11.3 to < 5.12 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.12 (affected) · 0 to < 5.12 (unaffected · semver) · 5.10.219 through 5.10.* (unaffected · semver) · 5.15.161 through 5.15.* (unaffected · semver) · 6.1.93 through 6.1.* (unaffected · semver) · 6.6.33 through 6.6.* (unaffected · semver) · 6.8.12 through 6.8.* (unaffected · semver) · 6.9.3 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2024-065 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2024-047 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Debian bullseye linux Advisory build 5.10.221-1 DSA-5730-1
Show 98 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 7 kernel-uekx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
AlmaLinux 8 kernel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.16.1.rt7.357.el8_10 ALSA-2024:5102
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.16.1.el8_10 ALSA-2024:5101
Oracle Linux 7 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 7 kernel-uek-toolsx86_64 Advisory build 0:5.4.17-2136.344.4.1.el7uek ELSA-2025-20372
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-cross-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debugx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-corex86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-debug-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-docx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-headersx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modulesx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-modules-extrax86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-toolsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libsx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-tools-libs-develx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.4.17-2136.344.4.1.el8uek ELSA-2025-20372
Oracle Linux 8 perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfaarch64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 8 python3-perfx86_64 Advisory build 0:4.18.0-553.16.1.el8_10 ELSA-2024-5101
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Discard command completions in internal error Fix use after free when FW completion arrives while device is in internal error state. Avoid calling completion handler in this case, since the device will flush the command interface and trigger all completions manually. Kernel log: ------------[ cut here ]------------ refcount_t: underflow; use-after-free. ... RIP: 0010:refcount_warn_saturate+0xd8/0xe0 ... Call Trace: <IRQ> ? __warn+0x79/0x120 ? refcount_warn_saturate+0xd8/0xe0 ? report_bug+0x17c/0x190 ? handle_bug+0x3c/0x60 ? exc_invalid_op+0x14/0x70 ? asm_exc_invalid_op+0x16/0x20 ? refcount_warn_saturate+0xd8/0xe0 cmd_ent_put+0x13b/0x160 [mlx5_core] mlx5_cmd_comp_handler+0x5f9/0x670 [mlx5_core] cmd_comp_notifier+0x1f/0x30 [mlx5_core] notifier_call_chain+0x35/0xb0 atomic_notifier_call_chain+0x16/0x20 mlx5_eq_async_int+0xf6/0x290 [mlx5_core] notifier_call_chain+0x35/0xb0 atomic_notifier_call_chain+0x16/0x20 irq_int_handler+0x19/0x30 [mlx5_core] __handle_irq_event_percpu+0x4b/0x160 handle_irq_event+0x2e/0x80 handle_edge_irq+0x98/0x230 __common_interrupt+0x3b/0xa0 common_interrupt+0x7b/0xa0 </IRQ> <TASK> asm_common_interrupt+0x22/0x40

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

58

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is the mlx5 PCI command/EQ interface; it is driven by locally issued firmware commands (RDMA uverbs, netdev/flow configuration) and the device health path, not by any remotely supplied data. No network packet reaches `cmd_comp_notifier()`. AC:H - Exploitation requires the device to be in `MLX5_DEVICE_STATE_INTERNAL_ERROR` — set only by a fatal FW syndrome, a PCI/AER error, or an admin-initiated FW sync reset — and a real FW completion must land in the window during/after `mlx5_cmd_flush()`; the attacker can flood the command queue to widen the window but cannot induce the error transition itself. PR:L - An unprivileged local user can supply the attacker-controlled half — keeping firmware commands in flight via the RDMA character device (commonly mode 0666 under rdma-core udev rules) and spraying `kmalloc-512` to reoccupy the freed `mlx5_cmd_work_ent`. No capability is needed for those operations. UI:N - The double `cmd_ent_put()` fires from the async EQ interrupt handler with no victim action involved; the attacker only needs to have commands outstanding when the device faults. S:U - The use-after-free corrupts kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - After the entry is freed, `ent->out`, `ent->lay` and `ent->uout` are read from reallocated memory and `mlx5_copy_from_msg()` copies firmware response data through those attacker-groomable pointers, giving an arbitrary kernel read/disclosure primitive. I:H - The stale completion path performs `callback(err, context)` — an indirect call through a function pointer read out of freed memory — plus writes via `ent->out`/`ent->uout` and `mlx5_free_cmd_msg()`/`free_msg()` on freed pointers, yielding arbitrary write and control-flow hijack primitives. A:H - The reported symptom is a `refcount_t: underflow; use-after-free` WARN in hard-IRQ context (fatal under panic_on_warn); the extra put also frees a live command entry and corrupts the command-slot bitmask and semaphore, leading to oops/panic and a wedged command interface.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 27c79b3a9212cf4ba634c157e07d29548181a208 to < f6fbb8535e990f844371086ab2c1221f71f993d3 (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < 3cb92b0ad73d3f1734e812054e698d655e9581b0 (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < bf8aaf0ae01c27ae3c06aa8610caf91e50393396 (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < 1337ec94bc5a9eed250e33f5f5c89a28a6bfabdb (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < 1d5dce5e92a70274de67a59e1e674c3267f94cd7 (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < 7ac4c69c34240c6de820492c0a28a0bd1494265a (affected · git)51d138c2610a236c1ed0059d034ee4c74f452b86 to < db9b31aa9bc56ff0d15b78f7e827d61c4a096e40 (affected · git)2e5d24b3bf091802c5456dc8f8f6a6be4493c8ca (affected · git)5.10.20 to < 5.10.219 (affected · semver)5.11.3 to < 5.12 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.12 (affected)0 to < 5.12 (unaffected · semver)5.10.219 through 5.10.* (unaffected · semver)5.15.161 through 5.15.* (unaffected · semver)6.1.93 through 6.1.* (unaffected · semver)6.6.33 through 6.6.* (unaffected · semver)6.8.12 through 6.8.* (unaffected · semver)6.9.3 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

3

Linux · cna

net/mlx5: Discard command completions in internal error

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
76bf71be89d9ef52cd031be4b0f4938cd7e3c0e356baa4da16400cba73f741d3
Ingested
23 Sep 2026, 08:24:49 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected