5.5medium
net: ethernet: xscale: Check for PTP support properly
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 9055a2f591629b952910503e72ddae1371c44bf1 before 322437972f0a712767f6920ad34aba25f2e9b942, from 9055a2f591629b952910503e72ddae1371c44bf1 before 21d1e80d0d6e7d0c3cd8b1e001ed1fa92fb9f3f5, from 9055a2f591629b952910503e72ddae1371c44bf1 before 2d74412dfd3621552a394d55cc3dd26a7cbf608e, from 9055a2f591629b952910503e72ddae1371c44bf1 before cbecebd35909f6cd0f6fb773f0fb73da99e02f8c, from 9055a2f591629b952910503e72ddae1371c44bf1 before 594163ea88a03bdb412063af50fc7177ef3cbeae, 5.15 Not affected: before 5.15, from 6.6.128 up to 6.6.*, from 6.12.75 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 5.15 before 5.15.202, from 5.16 before 6.1.165, from 6.2 before 6.6.128, from 6.7 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6, 7.0 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: ethernet: xscale: Verificar el soporte de PTP correctamente En ixp4xx_get_ts_info() se llama incondicionalmente a ixp46x_ptp_find() a pesar de que esta característica solo existe en ixp46x, lo que lleva al siguiente ’splat’ de tcpdump: root@OpenWrt:~# tcpdump -vv -X -i eth0 (...) No se puede manejar la desreferencia de puntero NULL del kernel en la dirección virtual 00000238 al leer (...) Rastreo de llamadas: ptp_clock_index desde ixp46x_ptp_find+0x1c/0x38 ixp46x_ptp_find desde ixp4xx_get_ts_info+0x4c/0x64 ixp4xx_get_ts_info desde __ethtool_get_ts_info+0x90/0x108 __ethtool_get_ts_info desde __dev_ethtool+0xa00/0x 2648 __dev_ethtool desde dev_ethtool+0x160/0x234 dev_ethtool desde dev_ioctl+0x2cc/0x460 dev_ioctl desde sock_ioctl+0x1ec/0x524 sock_ioctl desde sys_ioctl+0x51c/0xa94 sys_ioctl desde ret_fast_syscall+0x0/0x44 (...) Fallo de segmentación Verificar ixp46x en ixp46x_ptp_find() antes de intentar configurar PTP para evitar esto. Para evitar alterar el código de error devuelto de ixp4xx_hwtstamp_set() que antes de este parche era -EOPNOTSUPP, devolvemos -EOPNOTSUPP de ixp4xx_hwtstamp_set() si ixp46x_ptp_find() falla sin importar el código de error. La función auxiliar ixp46x_ptp_find() devuelve -ENODEV.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43173 changed 2026-06-01 | CVE Terms of Use |
| NVD | CVE-2026-43173 changed 2026-11-11 | Public domain |