7.8high
octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: octeontx2-pf: Corrección de un uso potencial después de liberar en otx2_tc_add_flow() Este código llama a kfree_rcu(new_node, rcu) y luego desreferencia 'new_node' y luego lo desreferencia en la siguiente línea. Dos líneas más tarde, tomamos un mutex, así que no creo que esta sea una región segura para RCU. Reordénelo para hacer las desreferencias antes de poner en cola la liberación.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39978 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-39978 changed 2026-11-10 | Public domain |