{"id":"CVE-2025-39978","aliases":["CVE-2025-39978"],"related":[],"kind":"vulnerability","state":"published","title":"octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-pf: Fix potential use after free in otx2_tc_add_flow()\n\nThis code calls kfree_rcu(new_node, rcu) and then dereferences \"new_node\"\nand then dereferences it on the next line.  Two lines later, we take\na mutex so I don't think this is an RCU safe region.  Re-order it to do\nthe dereferences before queuing up the free.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocteontx2-pf: Fix potential use after free in otx2_tc_add_flow()\n\nThis code calls kfree_rcu(new_node, rcu) and then dereferences \"new_node\"\nand then dereferences it on the next line.  Two lines later, we take\na mutex so I don't think this is an RCU safe region.  Re-order it to do\nthe dereferences before queuing up the free.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nocteontx2-pf: Corrección de un uso potencial después de liberar en otx2_tc_add_flow()\n\nEste 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.","source":"nvd"}],"published":"2025-10-15T07:55:58.949Z","modified":"2026-11-10T13:17:53.577Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"68fbff68dbea35f9e6f7649dd22fce492a5aedac","fixed":"5723120423a753a220b8b2954b273838b9d7e74a","status":"affected"},{"type":"git","introduced":"68fbff68dbea35f9e6f7649dd22fce492a5aedac","fixed":"df2c071061ed52d2225d97b212d27ecedf456b8a","status":"affected"},{"type":"git","introduced":"68fbff68dbea35f9e6f7649dd22fce492a5aedac","fixed":"c41b2941a024d4ec7c768e16ffb10a74b188fced","status":"affected"},{"type":"git","introduced":"68fbff68dbea35f9e6f7649dd22fce492a5aedac","fixed":"a8a63f27c3a8a3714210d32b12fd0f16d0337414","status":"affected"},{"type":"git","introduced":"68fbff68dbea35f9e6f7649dd22fce492a5aedac","fixed":"d9c70e93ec5988ab07ad2a92d9f9d12867f02c56","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"6.1.155","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.109","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.50","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.10","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5723120423a753a220b8b2954b273838b9d7e74a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df2c071061ed52d2225d97b212d27ecedf456b8a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c41b2941a024d4ec7c768e16ffb10a74b188fced","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8a63f27c3a8a3714210d32b12fd0f16d0337414","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9c70e93ec5988ab07ad2a92d9f9d12867f02c56","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:55:41.623Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39978","url":"https://www.cve.org/CVERecord?id=CVE-2025-39978","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:26.359Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39978","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39978","licence":"Public domain","modified":"2026-11-10T13:17:53.577Z"}],"updatedAt":"2026-11-25T22:59:06.399Z","epss":{"score":0.00159,"percentile":0.05356,"date":"2026-12-01T12:00:22.000Z"}}