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 6E9841FBF53 for ; Mon, 21 Oct 2024 19:40:28 +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=1729539628; cv=none; b=os2/NKliQH3RF0K+FbnhYCDPr/RZOiUMkHR4bxNpsYnNf8JmkGd5GlRgN/GBZ2Qgkv2RFfkVPbPuhkUD6/SG35cWwyj0M6FoitLlnUoT/DgupVknIzRob3I3mumSs8im0WrNi5xyiUhoYL/+YLmFYwXMobMM6OW3CHjDb0c+0dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729539628; c=relaxed/simple; bh=0HTwjOP7epa+4YNdOqQ6mpRMUAENsA5/nHfvu8TfrN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aGMMGmMAHrUl641kxeXLTz2dxoU42nSJ63/RzxF55mRDAHs7iaOEjX9amamMrZr1KN9wlll9qXgZ7dG6KY/ke7g4WP9E4r2KtpsQvaH2wjCdd7hpM26wQzyLMHTusW7Hsi+2wXG+IOXDgXjN4H1rPkc0pUQlqUZjIbyyeAHAzzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fd/UMEZT; 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="fd/UMEZT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9509C4CEC3; Mon, 21 Oct 2024 19:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729539628; bh=0HTwjOP7epa+4YNdOqQ6mpRMUAENsA5/nHfvu8TfrN4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fd/UMEZTi2hNNg4Gl0A9SfuZP5wbDnYJL+FFQY/78EMlF9C7maPVIhihzfQunpTm/ CJsHlCHIMpLPrwzZIjw6VwvVkuktLDE2PnC0VrbCDiDuXU8ysEQGl3V4OpCxcn5hoC JGSqEATtI/x01jKRY4U9SFf64eWNc+tkg+3ovhhg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50021: ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins() Date: Mon, 21 Oct 2024 21:39:27 +0200 Message-ID: <2024102129-CVE-2024-50021-d60d@gregkh> X-Mailer: git-send-email 2.47.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=2692; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0HTwjOP7epa+4YNdOqQ6mpRMUAENsA5/nHfvu8TfrN4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliaz8KHgy+vbZPWHxtdNS9l4sbpOaxXdi/3XyvnYJPc aZzdJx+RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkkzXDgvOyzMe+e/ElJTjM OK16r+rKiWr/dIb5iV83KUxpi5/i2Wz/3fr7De4mxkQ7AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins() This patch addresses a reference count handling issue in the ice_dpll_init_rclk_pins() function. The function calls ice_dpll_get_pins(), which increments the reference count of the relevant resources. However, if the condition WARN_ON((!vsi || !vsi->netdev)) is met, the function currently returns an error without properly releasing the resources acquired by ice_dpll_get_pins(), leading to a reference count leak. To resolve this, the check has been moved to the top of the function. This ensures that the function verifies the state before any resources are acquired, avoiding the need for additional resource management in the error path. This bug was identified by an experimental static analysis tool developed by our team. The tool specializes in analyzing reference count operations and detecting potential issues where resources are not properly managed. In this case, the tool flagged the missing release operation as a potential problem, which led to the development of this patch. The Linux kernel CVE team has assigned CVE-2024-50021 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit d7999f5ea64b and fixed in 6.11.4 with commit aefecead9d08 Issue introduced in 6.7 with commit d7999f5ea64b and fixed in 6.12-rc3 with commit ccca30a18e36 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-2024-50021 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/intel/ice/ice_dpll.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/aefecead9d08f4a35ab6f51ba2e408d2cef4e31d https://git.kernel.org/stable/c/ccca30a18e36a742e606d5bf0630e75be7711d0a