[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025101558-CVE-2025-39978-d538@gregkh>
Date: Wed, 15 Oct 2025 09:57:06 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-39978: octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
From: Greg Kroah-Hartman <gregkh@...nel.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.
The Linux kernel CVE team has assigned CVE-2025-39978 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit 68fbff68dbea35f9e6f7649dd22fce492a5aedac and fixed in 6.1.155 with commit 5723120423a753a220b8b2954b273838b9d7e74a
Issue introduced in 5.14 with commit 68fbff68dbea35f9e6f7649dd22fce492a5aedac and fixed in 6.6.109 with commit df2c071061ed52d2225d97b212d27ecedf456b8a
Issue introduced in 5.14 with commit 68fbff68dbea35f9e6f7649dd22fce492a5aedac and fixed in 6.12.50 with commit c41b2941a024d4ec7c768e16ffb10a74b188fced
Issue introduced in 5.14 with commit 68fbff68dbea35f9e6f7649dd22fce492a5aedac and fixed in 6.16.10 with commit a8a63f27c3a8a3714210d32b12fd0f16d0337414
Issue introduced in 5.14 with commit 68fbff68dbea35f9e6f7649dd22fce492a5aedac and fixed in 6.17 with commit d9c70e93ec5988ab07ad2a92d9f9d12867f02c56
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-39978
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/5723120423a753a220b8b2954b273838b9d7e74a
https://git.kernel.org/stable/c/df2c071061ed52d2225d97b212d27ecedf456b8a
https://git.kernel.org/stable/c/c41b2941a024d4ec7c768e16ffb10a74b188fced
https://git.kernel.org/stable/c/a8a63f27c3a8a3714210d32b12fd0f16d0337414
https://git.kernel.org/stable/c/d9c70e93ec5988ab07ad2a92d9f9d12867f02c56
Powered by blists - more mailing lists