{"id":"CVE-2022-50039","summary":"stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nstmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()\n\nCommit 09f012e64e4b (\"stmmac: intel: Fix clock handling on error and remove\npaths\") removed this clk_disable_unprepare()\n\nThis was partly revert by commit ac322f86b56c (\"net: stmmac: Fix clock\nhandling on remove path\") which removed this clk_disable_unprepare()\nbecause:\n\"\n   While unloading the dwmac-intel driver, clk_disable_unprepare() is\n   being called twice in stmmac_dvr_remove() and\n   intel_eth_pci_remove(). This causes kernel panic on the second call.\n\"\n\nHowever later on, commit 5ec55823438e8 (\"net: stmmac: add clocks management\nfor gmac driver\") has updated stmmac_dvr_remove() which do not call\nclk_disable_unprepare() anymore.\n\nSo this call should now be called from intel_eth_pci_remove().","modified":"2026-04-11T12:44:49.353355Z","published":"2025-06-18T11:01:40.500Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50039.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/02f3642d8e657c05f382729c165bed46745dc18c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/47129531196054b374017555165b47a43cdb6f41"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5c23d6b717e4e956376f3852b90f58e262946b50"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9400aeb419d35e718e90aa14a97c11229d0a40bc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50039.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50039"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3afe11be6435e126f1507ddf1a9d0e5a0d90b336"},{"fixed":"02f3642d8e657c05f382729c165bed46745dc18c"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5ec55823438e850c91c6b92aec93fb04ebde29e2"},{"fixed":"47129531196054b374017555165b47a43cdb6f41"},{"fixed":"9400aeb419d35e718e90aa14a97c11229d0a40bc"},{"fixed":"5c23d6b717e4e956376f3852b90f58e262946b50"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50039.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.138"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.13.0"},{"fixed":"5.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50039.json"}}],"schema_version":"1.7.5"}