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 982443C0B for ; Wed, 19 Jun 2024 13:36:58 +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=1718804218; cv=none; b=BnUfGaK0wwUexOSwCFsPPcsl1KE/PgRFAZ4DCaXCOZzYOGNDkB7gb5gK7rEx5pPpNYqJLodM74OG3cq9cQNIVriUQyYK51AAVQ4XhfwWNMr8z2Y4y4s3EprArHnVw2vnLyWQB3HIMWgIwIJXqvTnpdTnHHk9yaVq0cwkXMpGbE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804218; c=relaxed/simple; bh=Uen8t3IB+XGE40UOGkZMvIbGjhssl1j59fVxTL9DkEI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TnLTBYXfHqiThgHaI4OhvDkr56R+WbMvDcjCPnNllLXdCGgzK+Y5nE7F0/ClnOyWLl5NXbGpU/SFkV7ciRc3twQFYtM4l9Kmb7Iy5XlPfYdhuixhzfNCNSZPuY4y9dOjTbQejwYg+JdIxtdkKGrGAZRDR9Cp91HgjdtjJakMcbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z7j2IevK; 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="z7j2IevK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DCBFC2BBFC; Wed, 19 Jun 2024 13:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804218; bh=Uen8t3IB+XGE40UOGkZMvIbGjhssl1j59fVxTL9DkEI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z7j2IevKcFOzrX4+XnhTih8A12nxf/wG+bjW3eb6eHJc2tULfM6PeqP2dQjEj6cTs 0UN0jAc4cm4FH+ofSIVIJqpT0DltKVNdq0hgyQDJuICdCZ/AgftjUVGDu+tIdslFzZ g0SbliMWn7wHsnR9pADCLNNENxPL3pNkaCVZBRAA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38553: net: fec: remove .ndo_poll_controller to avoid deadlocks Date: Wed, 19 Jun 2024 15:36:02 +0200 Message-ID: <2024061951-CVE-2024-38553-2e34@gregkh> X-Mailer: git-send-email 2.45.2 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=2636; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Uen8t3IB+XGE40UOGkZMvIbGjhssl1j59fVxTL9DkEI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF97bXeJgeDuuOPRMlkFWr8/LJu6ffmBN1b3k1B1gZK /xUfuTWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO5ycYwv5BdSvbKVIsT+xwu XWs5XORyzT9yNcNstnWBn7J7T99kW/Z9WXTyHY/pvy++BgA= 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: net: fec: remove .ndo_poll_controller to avoid deadlocks There is a deadlock issue found in sungem driver, please refer to the commit ac0a230f719b ("eth: sungem: remove .ndo_poll_controller to avoid deadlocks"). The root cause of the issue is that netpoll is in atomic context and disable_irq() is called by .ndo_poll_controller interface of sungem driver, however, disable_irq() might sleep. After analyzing the implementation of fec_poll_controller(), the fec driver should have the same issue. Due to the fec driver uses NAPI for TX completions, the .ndo_poll_controller is unnecessary to be implemented in the fec driver, so fec_poll_controller() can be safely removed. The Linux kernel CVE team has assigned CVE-2024-38553 to this issue. Affected and fixed versions =========================== Issue introduced in 3.2 with commit 7f5c6addcdc0 and fixed in 6.6.33 with commit d38625f71950 Issue introduced in 3.2 with commit 7f5c6addcdc0 and fixed in 6.8.12 with commit accdd6b912c4 Issue introduced in 3.2 with commit 7f5c6addcdc0 and fixed in 6.9.3 with commit 87bcbc9b7e0b Issue introduced in 3.2 with commit 7f5c6addcdc0 and fixed in 6.10-rc1 with commit c2e0c58b25a0 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-38553 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/freescale/fec_main.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/d38625f71950e79e254515c5fc585552dad4b33e https://git.kernel.org/stable/c/accdd6b912c4219b8e056d1f1ad2e85bc66ee243 https://git.kernel.org/stable/c/87bcbc9b7e0b43a69d44efa5f32f11e32d08fa6f https://git.kernel.org/stable/c/c2e0c58b25a0a0c37ec643255558c5af4450c9f5