CVE-2025-39978

octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()

State
Published
Severity
7.8 High
Published
Oct 15, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 68fbff68dbea35f9e6f7649dd22fce492a5aedac to before 5723120423a753a220b8b2954b273838b9d7e74aAffected
  • 68fbff68dbea35f9e6f7649dd22fce492a5aedac to before df2c071061ed52d2225d97b212d27ecedf456b8aAffected
  • 68fbff68dbea35f9e6f7649dd22fce492a5aedac to before c41b2941a024d4ec7c768e16ffb10a74b188fcedAffected
  • 68fbff68dbea35f9e6f7649dd22fce492a5aedac to before a8a63f27c3a8a3714210d32b12fd0f16d0337414Affected
  • 68fbff68dbea35f9e6f7649dd22fce492a5aedac to before d9c70e93ec5988ab07ad2a92d9f9d12867f02c56Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 6.1.155 through 6.1.*Not affected
  • 6.6.109 through 6.6.*Not affected
  • 6.12.50 through 6.12.*Not affected
  • 6.16.10 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.