5.5medium
net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link When using a fixed-link, the altr_tse_pcs driver crashes due to null-pointer dereference as no phy_device is provided to tse_pcs_fix_mac_speed function. Fix this by adding a check for phy_dev before calling the tse_pcs_fix_mac_speed() function. Also clean up the tse_pcs_fix_mac_speed function a bit. There is no need to check for splitter_base and sgmii_adapter_base because the driver will fail if these 2 variables are not derived from the device tree.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4 before 7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb, from fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4 before 08d5e3e954537931c8da7428034808d202e98299, from fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4 before 62a48383ebe2e159fd68425dd3e16d4c6bd6599a, from fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4 before 6c020f05253df04c3480b586fe188a3582740049, from fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4 before a6aaa00324240967272b451bfa772547bd576ee6, 4.8 Not affected: before 4.8, from 5.4.190 up to 5.4.*, from 5.10.112 up to 5.10.*, from 5.15.35 up to 5.15.*, from 5.17.4 up to 5.17.*, from 5.18 up to * | CVE List |
| linux linux_kernel | from 4.8 before 5.4.190, from 5.5 before 5.10.112, from 5.11 before 5.15.35, from 5.16 before 5.17.4, 5.18 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link When using a fixed-link, the altr_tse_pcs driver crashes due to null-pointer dereference as no phy_device is provided to tse_pcs_fix_mac_speed function. Fix this by adding a check for phy_dev before calling the tse_pcs_fix_mac_speed() function. Also clean up the tse_pcs_fix_mac_speed function a bit. There is no need to check for splitter_base and sgmii_adapter_base because the driver will fail if these 2 variables are not derived from the device tree.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: ethernet: stmmac: corregir la función altr_tse_pcs al usar un enlace fijo Al usar un enlace fijo, el controlador altr_tse_pcs se bloquea debido a la desreferencia de puntero nulo ya que no se proporciona ningún phy_device a la función tse_pcs_fix_mac_speed. Solucione esto agregando una verificación para phy_dev antes de llamar a la función tse_pcs_fix_mac_speed(). También limpie un poco la función tse_pcs_fix_mac_speed. No es necesario verificar splitter_base y sgmii_adapter_base porque el controlador fallará si estas 2 variables no se derivan del árbol de dispositivos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49061 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49061 changed 2026-06-17 | Public domain |