# CVE-2025-39978: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-15T07:55:58.949Z
- Modified: 2026-11-10T13:17:53.577Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 68fbff68dbea35f9e6f7649dd22fce492a5aedac before 5723120423a753a220b8b2954b273838b9d7e74a; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac before df2c071061ed52d2225d97b212d27ecedf456b8a; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac before c41b2941a024d4ec7c768e16ffb10a74b188fced; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac before a8a63f27c3a8a3714210d32b12fd0f16d0337414; from 68fbff68dbea35f9e6f7649dd22fce492a5aedac before d9c70e93ec5988ab07ad2a92d9f9d12867f02c56; 5.14 (not affected: before 5.14; from 6.1.155 up to 6.1.*; from 6.6.109 up to 6.6.*; from 6.12.50 up to 6.12.*; from 6.16.10 up to 6.16.*; from 6.17 up to *)

## 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>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-39978](https://www.cve.org/CVERecord?id=CVE-2025-39978), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-39978](https://nvd.nist.gov/vuln/detail/CVE-2025-39978), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-39978 · Whole record: https://cve.day/CVE-2025-39978.json · Rebuilt by cve.day 2026-11-25T22:59:06.399Z
