All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-39978

Probability of exploitation in the next 30 days: 0.15%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel's Marvell OcteonTX2 network driver. Memory is dereferenced after being queued for release within the traffic control flow function (otx2_tc_add_flow()), leading to a use-after-free condition. A local user with administrative privileges could exploit this flaw while configuring network traffic rules to corrupt kernel memory, potentially resulting in privilege escalation or a denial of service (DoS).