Bug 2348153 (CVE-2022-49061) - CVE-2022-49061 kernel: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link
Summary: CVE-2022-49061 kernel: net: ethernet: stmmac: fix altr_tse_pcs function when ...
Keywords:
Status: NEW
Alias: CVE-2022-49061
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:19 UTC by OSIDB Bzimport
Modified: 2025-05-21 13:08 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:19:28 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 14:04:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022653-CVE-2022-49061-01b6@gregkh/T

Comment 4 Avinash Hanwate 2025-02-27 17:14:09 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022653-CVE-2022-49061-01b6@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.