Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CA3E170A11 for ; Wed, 18 Jun 2025 11:08:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244901; cv=none; b=PrUAJJpxEOPFlJ0ceIEec+0b3j44pkJSIQK3//X1wZmkZHtwvB44v57Mpf6dJkobfEctlxi9PWlYk8HpY3VVgv7Zo6cIxCjs5+loYEKujcwA7kUaYsRdtYriYwaOMzooCHhAtpT/Z9GydXOGtqkyvPB1Om5RUzq+E531Z/X3KJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244901; c=relaxed/simple; bh=C3NMExE/kRU5hBQCkASrfp+VXEzGR6RdD6z4gDGhuWY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=irQdga9LwflUkY5rkZf+XGfZq6otWlGyXcN6qbDSYmZJ+WW5FTL18U2xieyfqEQX9NsBdIqtNJ7mOn0P60ougOSoTrl8Qu1hKvNEfTgZGfjTJryvcY5njLk3Ep+3btBbc1RAljoLwiSUgYvhxu1Kmm3iEuMJ2q7PkglaafD0oQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cwSW17uJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cwSW17uJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFCBEC4CEE7; Wed, 18 Jun 2025 11:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244901; bh=C3NMExE/kRU5hBQCkASrfp+VXEzGR6RdD6z4gDGhuWY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cwSW17uJhep83mrCSzNLJ1a1vMVZ6FxoC3j5LozVeGrSpxu70t4b3bEC5a/Ddfcpp fJnGshxImlPzmADyta9Wqsity9dj+1BhI6IN5Ar16jj1wcrBcgNbAIy3WrchQbjCsM f3U0tERKdL1FFX+tES0+UcpERoICycrAkEYvmNQA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50039: stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove() Date: Wed, 18 Jun 2025 13:01:44 +0200 Message-ID: <2025061842-CVE-2022-50039-7dd9@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3000; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fqiylEdYWQw3wvVqqG5cdtKL+Ceyxzbz/WW4Y/Y+iFI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6J4l7QV7Va1K2Tt5tPfJKRRw9L38oX+tQdHzM59k TjixB3aEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxOM0wv5yv+fer9xbzd0df bprpu8BhckmuOsM82+qMUEmuoPun5BfqPUyfHNaw7GoGAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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(). The Linux kernel CVE team has assigned CVE-2022-50039 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.81 with commit 3afe11be6435e126f1507ddf1a9d0e5a0d90b336 and fixed in 5.10.138 with commit 02f3642d8e657c05f382729c165bed46745dc18c Issue introduced in 5.13 with commit 5ec55823438e850c91c6b92aec93fb04ebde29e2 and fixed in 5.15.63 with commit 47129531196054b374017555165b47a43cdb6f41 Issue introduced in 5.13 with commit 5ec55823438e850c91c6b92aec93fb04ebde29e2 and fixed in 5.19.4 with commit 9400aeb419d35e718e90aa14a97c11229d0a40bc Issue introduced in 5.13 with commit 5ec55823438e850c91c6b92aec93fb04ebde29e2 and fixed in 6.0 with commit 5c23d6b717e4e956376f3852b90f58e262946b50 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50039 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/02f3642d8e657c05f382729c165bed46745dc18c https://git.kernel.org/stable/c/47129531196054b374017555165b47a43cdb6f41 https://git.kernel.org/stable/c/9400aeb419d35e718e90aa14a97c11229d0a40bc https://git.kernel.org/stable/c/5c23d6b717e4e956376f3852b90f58e262946b50