Skip to contentSkip to conversation

CVE-2025-39856: net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 19, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: ethernet: ti: am65-cpsw-nuss: Fix null pointer dereference for ndev

In the TX completion packet stage of TI SoCs with CPSW2G instance, which has single external ethernet port, ndev is accessed without being initialized if no TX packets have been processed. It results into null pointer dereference, causing kernel to crash. Fix this by having a check on the number of TX packets which have been processed.

The Linux kernel CVE team has assigned CVE-2025-39856 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.15 with commit 9a369ae3d1431a83589dde57323a04692dd7fc12 and fixed in 6.16.6 with commit 485302905bada953aadfe063320d73c892a66cbb
	Issue introduced in 6.15 with commit 9a369ae3d1431a83589dde57323a04692dd7fc12 and fixed in 6.17-rc5 with commit a6099f263e1f408bcc7913c9df24b0677164fc5d

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-39856

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/ti/am65-cpsw-nuss.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/485302905bada953aadfe063320d73c892a66cbb
	https://git.kernel.org/stable/c/a6099f263e1f408bcc7913c9df24b0677164fc5d