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-2025-39979

published high CVSS 3.1 · 7.8

net/mlx5: fs, fix UAF in flow counter release

Published
15 Oct 2025, 07:55:59 UTC
Updated
15 Oct 2026, 22:02:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb581f4266928d3b5d1bbe711e39623d9a1696091 to < 3c77f6d244188c3fb11f6aec40bbfe884f1803b5 · b581f4266928d3b5d1bbe711e39623d9a1696091 to < 6043819e707cefb1c9e59d6e431dcfa735c4f975 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.16.10 through 6.16.* (unaffected · semver) · 6.17 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 AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-124.20.1.el10_1 ALSA-2025:22854
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
AlmaLinux 10 kernel-doc Advisory build 6.12.0-124.20.1.el10_1 ALSA-2025:22854
AlmaLinux 9 kernel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 libperf Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 perf Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 python3-perf Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 rtla Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
AlmaLinux 9 rv Advisory build 5.14.0-611.13.1.el9_7 ALSA-2025:22865
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-modules-extra-matchedx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854
Oracle Linux 10 kernel-toolsx86_64 Advisory build 0:6.12.0-124.20.1.el10_1 ELSA-2025-22854

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: fs, fix UAF in flow counter release Fix a kernel trace [1] caused by releasing an HWS action of a local flow counter in mlx5_cmd_hws_delete_fte(), where the HWS action refcount and mutex were not initialized and the counter struct could already be freed when deleting the rule. Fix it by adding the missing initializations and adding refcount for the local flow counter struct. [1] Kernel log: Call Trace: <TASK> dump_stack_lvl+0x34/0x48 mlx5_fs_put_hws_action.part.0.cold+0x21/0x94 [mlx5_core] mlx5_fc_put_hws_action+0x96/0xad [mlx5_core] mlx5_fs_destroy_fs_actions+0x8b/0x152 [mlx5_core] mlx5_cmd_hws_delete_fte+0x5a/0xa0 [mlx5_core] del_hw_fte+0x1ce/0x260 [mlx5_core] mlx5_del_flow_rules+0x12d/0x240 [mlx5_core] ? ttwu_queue_wakelist+0xf4/0x110 mlx5_ib_destroy_flow+0x103/0x1b0 [mlx5_ib] uverbs_free_flow+0x20/0x50 [ib_uverbs] destroy_hw_idr_uobject+0x1b/0x50 [ib_uverbs] uverbs_destroy_uobject+0x34/0x1a0 [ib_uverbs] uobj_destroy+0x3c/0x80 [ib_uverbs] ib_uverbs_run_method+0x23e/0x360 [ib_uverbs] ? uverbs_finalize_object+0x60/0x60 [ib_uverbs] ib_uverbs_cmd_verbs+0x14f/0x2c0 [ib_uverbs] ? do_tty_write+0x1a9/0x270 ? file_tty_write.constprop.0+0x98/0xc0 ? new_sync_write+0xfc/0x190 ib_uverbs_ioctl+0xd7/0x160 [ib_uverbs] __x64_sys_ioctl+0x87/0xc0 do_syscall_64+0x59/0x90

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

13

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The only route to the vulnerable code is the `MLX5_IB_METHOD_CREATE_FLOW`/destroy-flow uverbs ioctl on the local `/dev/infiniband/uverbsN` character device (created world-accessible at mode 0666), as shown by the `__x64_sys_ioctl` → `ib_uverbs_ioctl` → `mlx5_ib_destroy_flow` call trace. No remote packet or peer data reaches this path. AC:L - This is not a race — `mlx5_del_flow_rules()` frees the local counter in `del_sw_hw_rule()` and then unconditionally reuses it in `del_hw_fte()` → `mlx5_cmd_hws_delete_fte()` within the same call, so every teardown of a DEVX-counter flow rule deterministically triggers the UAF, and the attacker fully controls both the create and destroy ioctls plus any heap-spray thread. PR:L - The attacker needs only the partial CAP_NET_RAW capability, not real root/admin — it is granted by default to Docker/OCI containers in the initial user namespace, is routinely handed to DPDK/RDMA and HPC workloads, and the uverbs device node itself is world-readable/writable at 0666. This is a limited privilege on the vulnerable component, not full administrative control. UI:N - The attacker performs the entire sequence (create DEVX flow counter, create raw flow rule, destroy the flow uobject) from its own process with ordinary ioctls. No victim action or interaction is needed. S:U - The use-after-free corrupts kernel slab memory and is exploited to gain kernel privileges within the same security authority as the attacking process. No hypervisor, IOMMU, or other security-authority boundary is crossed. C:H - `mlx5_fs_put_hws_action()` reads `counter->bulk` and then `fs_hws_data->hws_action` out of freed slab memory; once the object is reclaimed by a sprayed allocation the attacker controls those reads and the subsequent `action->type`/`action->ctx` dereferences in `mlx5hws_action_destroy()`, yielding an arbitrary-pointer read primitive and full kernel memory disclosure. I:H - The freed object is written after free — an atomic RMW via `refcount_dec_not_one()`, a `mutex_lock()`, and `fs_hws_data->hws_action = NULL` — corrupting whatever structure now occupies the slot, and `mlx5hws_action_destroy()` performs a `kfree()` on a pointer read from attacker-controlled freed memory, an arbitrary-free primitive that is a well-established route to control-flow hijack and privilege escalation. A:H - Even without exploitation the bug reliably produces a refcount_t saturation splat, slab corruption, and kernel oops/panic on every flow-rule teardown, and the uninitialized `hws_data.lock` mutex (zeroed `wait_list` with NULL next/prev) causes a NULL dereference or list corruption on any contended `mutex_lock()`.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b581f4266928d3b5d1bbe711e39623d9a1696091 to < 3c77f6d244188c3fb11f6aec40bbfe884f1803b5 (affected · git)b581f4266928d3b5d1bbe711e39623d9a1696091 to < 6043819e707cefb1c9e59d6e431dcfa735c4f975 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.14 (affected)0 to < 6.14 (unaffected · semver)6.16.10 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

2

Linux · cna

net/mlx5: fs, fix UAF in flow counter release

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
87a9bb9909117579bb5016a76343b578b16767427486cceed33aeadbb470a87e
Ingested
15 Oct 2026, 23:26:25 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