Vulnerability · Published Oct 15, 2025 · Assigned by Linux
CVE-2025-39979net/mlx5: fs, fix UAF in flow counter release
High 7.8
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | kernel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:10 | kernel-abi-stablelists | 6.12.0-124.20.1.el10_1 | ALSA-2025:22854 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:10 | kernel-doc | 6.12.0-124.20.1.el10_1 | ALSA-2025:22854 |
| AlmaLinux:9 | kernel-doc | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-headers | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-debug-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-64k-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-tools | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-uki-virt-addons | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | libperf | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | perf | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | python3-perf | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | rtla | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| AlmaLinux:9 | rv | 5.14.0-611.13.1.el9_7 | ALSA-2025:22865 |
| Debian:14 | linux | 6.16.10-1 | DEBIAN-CVE-2025-39979 |
| Rocky Linux:10 | kernel | 0:6.12.0-124.20.1.el10_1 | RLSA-2025:22854 |
| Rocky Linux:9 | kernel | 0:5.14.0-611.13.1.el9_7 | RLSA-2025:22865 |
| Ubuntu:25.10 | linux | 6.17.0-6.6 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-aws | 6.17.0-1003.3 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-azure | 6.17.0-1006.6 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-azure-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-azure-fde-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-gcp | 6.17.0-1003.3 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-oracle | 6.17.0-1003.3 | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-raspi | 6.17.0-1004.4 | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-realtime | 6.17.0-1002.3 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:25.10 | linux-riscv | 6.17.0-6.6.1 | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-39979 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-39979 |