CVE-2022-49061

net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
16.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00261 · 16.9th percentile
Published
2025-02-26T01:54Z
EPSS history
Timeline
  • 26 FEB 01:54Z
    net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link
    cvelistv5