CVE-2026-43173: net: ethernet: xscale: Check for PTP support properly
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: xscale: Check for PTP support properly
In ixp4xx_get_ts_info() ixp46x_ptp_find() is called unconditionally despite this feature only existing on ixp46x, leading to the following splat from tcpdump:
root@OpenWrt:~# tcpdump -vv -X -i eth0 (...) Unable to handle kernel NULL pointer dereference at virtual address 00000238 when read (...) Call trace: ptp_clock_index from ixp46x_ptp_find+0x1c/0x38 ixp46x_ptp_find from ixp4xx_get_ts_info+0x4c/0x64 ixp4xx_get_ts_info from __ethtool_get_ts_info+0x90/0x108 __ethtool_get_ts_info from __dev_ethtool+0xa00/0x2648 __dev_ethtool from dev_ethtool+0x160/0x234 dev_ethtool from dev_ioctl+0x2cc/0x460 dev_ioctl from sock_ioctl+0x1ec/0x524 sock_ioctl from sys_ioctl+0x51c/0xa94 sys_ioctl from ret_fast_syscall+0x0/0x44 (...) Segmentation fault
Check for ixp46x in ixp46x_ptp_find() before trying to set up PTP to avoid this.
To avoid altering the returned error code from ixp4xx_hwtstamp_set() which before this patch was -EOPNOTSUPP, we return -EOPNOTSUPP from ixp4xx_hwtstamp_set() if ixp46x_ptp_find() fails no matter the error code. The helper function ixp46x_ptp_find() helper returns -ENODEV.
The Linux kernel CVE team has assigned CVE-2026-43173 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 5.15.202 with commit 144dde3146985b25fa84d4e4b7c3d11e0f5fc5a4 Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 6.1.165 with commit 5195b10c34b8993194ad12ad7d8f54d861be084b Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 6.6.128 with commit 322437972f0a712767f6920ad34aba25f2e9b942 Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 6.12.75 with commit 21d1e80d0d6e7d0c3cd8b1e001ed1fa92fb9f3f5 Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 6.18.16 with commit 2d74412dfd3621552a394d55cc3dd26a7cbf608e Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 6.19.6 with commit cbecebd35909f6cd0f6fb773f0fb73da99e02f8c Issue introduced in 5.15 with commit 9055a2f591629b952910503e72ddae1371c44bf1 and fixed in 7.0 with commit 594163ea88a03bdb412063af50fc7177ef3cbeae
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-2026-43173
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/xscale/ixp4xx_eth.c
drivers/net/ethernet/xscale/ptp_ixp46x.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/144dde3146985b25fa84d4e4b7c3d11e0f5fc5a4 https://git.kernel.org/stable/c/5195b10c34b8993194ad12ad7d8f54d861be084b https://git.kernel.org/stable/c/322437972f0a712767f6920ad34aba25f2e9b942 https://git.kernel.org/stable/c/21d1e80d0d6e7d0c3cd8b1e001ed1fa92fb9f3f5 https://git.kernel.org/stable/c/2d74412dfd3621552a394d55cc3dd26a7cbf608e https://git.kernel.org/stable/c/cbecebd35909f6cd0f6fb773f0fb73da99e02f8c https://git.kernel.org/stable/c/594163ea88a03bdb412063af50fc7177ef3cbeae