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 BDE6F2DE6E8 for ; Thu, 3 Jul 2025 08:36:05 +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=1751531765; cv=none; b=EDSr9CgJnxgAYucf38e2uxDzaQQWHTl7Bq1cJDBT39e6wHE9PTbZLkS+6Op9Dcuj9oAL1Nt4nW1q0XQgkdO+1lEvkssg5PLSJ6tFL09iExtjwXCALfyviFCsRIiZl5XGoBNmCGZXw/BgIhQf6+1v4LQXJ7f9mDLvSx9yb0H0Xm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531765; c=relaxed/simple; bh=3QIy7idiUPVRM1AZzX/aGnle51StStd/M0z5FKHTTbY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TVT7kf6LBzSlR82d78GESR9tIGCwpwWevYycXqloT+jfljGO68hW3WPlaUFRVZwLTp/C6WX5Mxie4bzXK+p59b77p9jrXmDDoxfFE+LKJijKlArVPYFtzb3oZxIUjqvZc5vXKSaVaasGqMi550mkabd+/WKssMA8scFK4L4geFY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yjwd/4sC; 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="yjwd/4sC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C6E3C4CEE3; Thu, 3 Jul 2025 08:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531765; bh=3QIy7idiUPVRM1AZzX/aGnle51StStd/M0z5FKHTTbY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yjwd/4sC7YU/ou9OFHFgpT3IclQK9UDcJCnXtOk/qbDTeIGxvXeBpzdi9AnZ54NV9 yOgXTe4S4pPjdvCDZgvPKVGFjLFwfWhDV9welbDLKaOa/nDvGglYPRplU5clodtP55 CRl+Tk6TIddYkcMGMO4hEtRyMaaD1o51W3hOmQHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38114: e1000: Move cancel_work_sync to avoid deadlock Date: Thu, 3 Jul 2025 10:35:31 +0200 Message-ID: <2025070325-CVE-2025-38114-c603@gregkh> X-Mailer: git-send-email 2.50.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=2391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KhTJGNXhSaqlRBTDhmUxSS55d4Ngp7S+VqT9APVPsiY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDmcDWRnXTe61mxu6bX+UifWva76RXMmiDrpJbFtms Exb+zeyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbio8qwYO7upUEtfzhuNR5M vHjw7vT0K+xb9BkWzLbmUHf/JiTzg+UOd1EQb8J248/mAA== 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: e1000: Move cancel_work_sync to avoid deadlock Previously, e1000_down called cancel_work_sync for the e1000 reset task (via e1000_down_and_stop), which takes RTNL. As reported by users and syzbot, a deadlock is possible in the following scenario: CPU 0: - RTNL is held - e1000_close - e1000_down - cancel_work_sync (cancel / wait for e1000_reset_task()) CPU 1: - process_one_work - e1000_reset_task - take RTNL To remedy this, avoid calling cancel_work_sync from e1000_down (e1000_reset_task does nothing if the device is down anyway). Instead, call cancel_work_sync for e1000_reset_task when the device is being removed. The Linux kernel CVE team has assigned CVE-2025-38114 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit e400c7444d84b0fd2ebb34e618f83abe05917543 and fixed in 6.15.3 with commit 1fd4438ddcc4958ed24662d5125114299e19bae4 Issue introduced in 6.13 with commit e400c7444d84b0fd2ebb34e618f83abe05917543 and fixed in 6.16-rc2 with commit b4a8085ceefb7bbb12c2b71c55e71fc946c6929f 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-2025-38114 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/e1000/e1000_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/1fd4438ddcc4958ed24662d5125114299e19bae4 https://git.kernel.org/stable/c/b4a8085ceefb7bbb12c2b71c55e71fc946c6929f