# CVE-2025-39979: net/mlx5: fs, fix UAF in flow counter release

> 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.22% (percentile 8, 2026-11-26)
- **Published:** 2025-10-15T07:55:59.609Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 3c77f6d244188c3fb11f6aec40bbfe884f1803b5; \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 6043819e707cefb1c9e59d6e431dcfa735c4f975
- Anyone running Linux 6.14

## 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 and fixed versions

- Linux: \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 3c77f6d244188c3fb11f6aec40bbfe884f1803b5; \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 6043819e707cefb1c9e59d6e431dcfa735c4f975 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 6043819e707cefb1c9e59d6e431dcfa735c4f975 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39979.md
Affected: Linux >= b581f4266928d3b5d1bbe711e39623d9a1696091, < 3c77f6d244188c3fb11f6aec40bbfe884f1803b5; >= b581f4266928d3b5d1bbe711e39623d9a1696091, < 6043819e707cefb1c9e59d6e431dcfa735c4f975; Linux 6.14
Fixed in: Linux 3c77f6d244188c3fb11f6aec40bbfe884f1803b5, Linux 6043819e707cefb1c9e59d6e431dcfa735c4f975

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-2025-39979 being exploited?

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

### How serious is CVE-2025-39979?

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

### Which versions are affected by CVE-2025-39979?

Linux \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 3c77f6d244188c3fb11f6aec40bbfe884f1803b5; \>= b581f4266928d3b5d1bbe711e39623d9a1696091, \< 6043819e707cefb1c9e59d6e431dcfa735c4f975; Linux 6.14.

### Is there a fix for CVE-2025-39979?

Yes. Fixed in Linux 3c77f6d244188c3fb11f6aec40bbfe884f1803b5, Linux 6043819e707cefb1c9e59d6e431dcfa735c4f975. Upgrade Linux to 6043819e707cefb1c9e59d6e431dcfa735c4f975 or later.

### How do I check if I'm affected by CVE-2025-39979?

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

- other: <https://git.kernel.org/stable/c/3c77f6d244188c3fb11f6aec40bbfe884f1803b5>
- other: <https://git.kernel.org/stable/c/6043819e707cefb1c9e59d6e431dcfa735c4f975>

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

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