{"id":"CVE-2022-50039","aliases":["CVE-2022-50039"],"related":[],"kind":"vulnerability","state":"published","title":"stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: stmmac: intel: Añadir una llamada clk_disable_unprepare() faltante en intel_eth_pci_remove(). el commit 09f012e64e4b (\"stmmac: intel: Corregir el manejo del reloj en caso de error y eliminar rutas\") eliminó esta clk_disable_unprepare(). Esto se revirtió parcialmente mediante el commit ac322f86b56c (\"net: stmmac: Corregir el manejo del reloj al eliminar la ruta\"), que eliminó esta clk_disable_unprepare() porque: \"Al descargar el controlador dwmac-intel, se llama a clk_disable_unprepare() dos veces en stmmac_dvr_remove() e intel_eth_pci_remove(). Esto provoca un pánico del kernel en la segunda llamada\". Sin embargo, más tarde, el commit 5ec55823438e8 (\"net: stmmac: añadir la gestión de relojes para el controlador gmac\") ha actualizado stmmac_dvr_remove() ya no llama a clk_disable_unprepare(). Por lo tanto, esta llamada ahora debe ejecutarse desde intel_eth_pci_remove().","source":"nvd"}],"published":"2025-06-18T11:01:40.500Z","modified":"2026-06-17T05:22:37.120Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3afe11be6435e126f1507ddf1a9d0e5a0d90b336","fixed":"02f3642d8e657c05f382729c165bed46745dc18c","status":"affected"},{"type":"git","introduced":"5ec55823438e850c91c6b92aec93fb04ebde29e2","fixed":"47129531196054b374017555165b47a43cdb6f41","status":"affected"},{"type":"git","introduced":"5ec55823438e850c91c6b92aec93fb04ebde29e2","fixed":"9400aeb419d35e718e90aa14a97c11229d0a40bc","status":"affected"},{"type":"git","introduced":"5ec55823438e850c91c6b92aec93fb04ebde29e2","fixed":"5c23d6b717e4e956376f3852b90f58e262946b50","status":"affected"},{"type":"semver","introduced":"5.10.81","fixed":"5.10.138","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.10.138","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.63","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.4","lastAffected":"5.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.10.81","fixed":"5.10.138"},{"status":"affected","introduced":"5.13","fixed":"5.15.63"},{"status":"affected","introduced":"5.16","fixed":"5.19.4"},{"status":"affected","version":"6.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/02f3642d8e657c05f382729c165bed46745dc18c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47129531196054b374017555165b47a43cdb6f41","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9400aeb419d35e718e90aa14a97c11229d0a40bc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c23d6b717e4e956376f3852b90f58e262946b50","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50039","url":"https://www.cve.org/CVERecord?id=CVE-2022-50039","licence":"CVE Terms of Use","modified":"2026-05-23T15:23:34.463Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50039","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50039","licence":"Public domain","modified":"2026-06-17T05:22:37.120Z"}],"updatedAt":"2026-11-25T22:58:21.022Z","epss":{"score":0.00256,"percentile":0.18423,"date":"2026-12-01T12:00:22.000Z"}}