Bug 2373422 (CVE-2022-50039) - CVE-2022-50039 kernel: stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()
Summary: CVE-2022-50039 kernel: stmmac: intel: Add a missing clk_disable_unprepare() c...
Keywords:
Status: NEW
Alias: CVE-2022-50039
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-06-18 12:02 UTC by OSIDB Bzimport
Modified: 2025-06-21 12:45 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:02:10 UTC
In the Linux kernel, the following vulnerability has been resolved:

stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()

Commit 09f012e64e4b ("stmmac: intel: Fix clock handling on error and remove
paths") removed this clk_disable_unprepare()

This was partly revert by commit ac322f86b56c ("net: stmmac: Fix clock
handling on remove path") which removed this clk_disable_unprepare()
because:
"
   While unloading the dwmac-intel driver, clk_disable_unprepare() is
   being called twice in stmmac_dvr_remove() and
   intel_eth_pci_remove(). This causes kernel panic on the second call.
"

However later on, commit 5ec55823438e8 ("net: stmmac: add clocks management
for gmac driver") has updated stmmac_dvr_remove() which do not call
clk_disable_unprepare() anymore.

So this call should now be called from intel_eth_pci_remove().

Comment 1 Avinash Hanwate 2025-06-20 09:47:51 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061842-CVE-2022-50039-7dd9@gregkh/T


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