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… (CVE-2025-39978)
A use-after-free vulnerability was identified and resolved in the Linux kernel component octeontx2-pf within the function otx2_tc_add_flow(). The issue involved dereferencing a memory object after it had been freed, which could lead to memory corruption. The fix involved reordering operations to ensure dereferences occur before the memory is freed. This vulnerability has a high severity rating based on its potential impact on confidentiality, integrity, and availability.
AI Analysis
Technical Summary
The Linux kernel's octeontx2-pf driver contained a use-after-free vulnerability in the otx2_tc_add_flow() function. Specifically, the code called kfree_rcu(new_node, rcu) to free memory and then dereferenced the freed 'new_node' pointer on subsequent lines. Since the code region is not RCU safe due to a mutex acquisition occurring shortly after, this sequence could cause unsafe memory access. The patch reorders the code to perform dereferences before freeing the memory, eliminating the use-after-free condition.
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption, potentially allowing an attacker with local privileges to cause denial of service or escalate privileges by manipulating kernel memory. The CVSS vector indicates local attack complexity with low privileges required and no user interaction, impacting confidentiality, integrity, and availability at a high level.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reorder the code and prevent use-after-free. Users and administrators should apply the official Linux kernel updates that include this patch once available. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories for the current remediation status and apply updates accordingly.
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… (CVE-2025-39978)
Description
A use-after-free vulnerability was identified and resolved in the Linux kernel component octeontx2-pf within the function otx2_tc_add_flow(). The issue involved dereferencing a memory object after it had been freed, which could lead to memory corruption. The fix involved reordering operations to ensure dereferences occur before the memory is freed. This vulnerability has a high severity rating based on its potential impact on confidentiality, integrity, and availability.
CVSS v3.1
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's octeontx2-pf driver contained a use-after-free vulnerability in the otx2_tc_add_flow() function. Specifically, the code called kfree_rcu(new_node, rcu) to free memory and then dereferenced the freed 'new_node' pointer on subsequent lines. Since the code region is not RCU safe due to a mutex acquisition occurring shortly after, this sequence could cause unsafe memory access. The patch reorders the code to perform dereferences before freeing the memory, eliminating the use-after-free condition.
Potential Impact
Successful exploitation of this vulnerability could lead to memory corruption, potentially allowing an attacker with local privileges to cause denial of service or escalate privileges by manipulating kernel memory. The CVSS vector indicates local attack complexity with low privileges required and no user interaction, impacting confidentiality, integrity, and availability at a high level.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reorder the code and prevent use-after-free. Users and administrators should apply the official Linux kernel updates that include this patch once available. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories for the current remediation status and apply updates accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2829-fqm4-jgr9
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-39978"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d89c2644c7f847be46
Added to database: 07/30/2026, 15:50:48 UTC
Last enriched: 07/30/2026, 15:52:09 UTC
Last updated: 07/30/2026, 16:17:17 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.