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 844F1535BB for ; Tue, 27 Feb 2024 06:54:25 +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=1709016866; cv=none; b=FOR2WD+v+zpWzN32uvZlOJHr+zI/MnTL4Id3Bu0m3ZTAGtzgv7lIUZC+L3JqKB+g/oLmwnkCcUUfkyImo2+8u31DE6+ldCKsKS4I/tU2YX6+DDjfe090b2uRlLSu7zHI5UuKome1KEM/zvVlv2Po0o5UhgcvD81IgTqEAJI14po= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709016866; c=relaxed/simple; bh=av+LBi4r5CXsG3hzhwxSQNfAKOWaZ4v/OvHpMgLtEUk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o3WcdcQHTd3HPphsmr16+tnZN5Hqc4szDl8I6FGwG22gRgrPLfPGztX3hgx3YtCtGHwv12WOrVMeeZ43KpBXMwTu+Ix9bHqphFAnqjw/I0SzDHcjAl/9trye8oAH2vXbcvLx0blGnha2QNA+lz9VvCmqtEZr0/rXBmziOyevw7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oeDbM1+G; 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="oeDbM1+G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01567C433C7; Tue, 27 Feb 2024 06:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709016865; bh=av+LBi4r5CXsG3hzhwxSQNfAKOWaZ4v/OvHpMgLtEUk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oeDbM1+G0Enqwn7WrSASEzsWIBw1e/sqgjVW52tNZ4kav+2mTdad6/lVuJsaoSTwg BRPfJ0MzgWG5fyy5L6tVnMATiP5CJKDDsesH+dWsiBfQImjI+4pDLNL+iulb8+hFP9 rIQ1DVqRHbSga8hdQUrbatjG36drWzpeClk1tnJ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46914: ixgbe: fix unbalanced device enable/disable in suspend/resume Date: Tue, 27 Feb 2024 07:54:10 +0100 Message-ID: <2024022709-CVE-2021-46914-56b6@gregkh> X-Mailer: git-send-email 2.44.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=2719; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=av+LBi4r5CXsG3hzhwxSQNfAKOWaZ4v/OvHpMgLtEUk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl32wXX9bjd3fTCKPdUyKbtbosf/Cx8vMx5+aztbxjKZ q04lmW6tyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmss2aYRbTt3VP1Fj4jAof ql2UiDSSFJ1nps2wYNa2ifZbWpS4yn9mia68tWHqwZNllwA= 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: ixgbe: fix unbalanced device enable/disable in suspend/resume pci_disable_device() called in __ixgbe_shutdown() decreases dev->enable_cnt by 1. pci_enable_device_mem() which increases dev->enable_cnt by 1, was removed from ixgbe_resume() in commit 6f82b2558735 ("ixgbe: use generic power management"). This caused unbalanced increase/decrease. So add pci_enable_device_mem() back. Fix the following call trace. ixgbe 0000:17:00.1: disabling already-disabled device Call Trace: __ixgbe_shutdown+0x10a/0x1e0 [ixgbe] ixgbe_suspend+0x32/0x70 [ixgbe] pci_pm_suspend+0x87/0x160 ? pci_pm_freeze+0xd0/0xd0 dpm_run_callback+0x42/0x170 __device_suspend+0x114/0x460 async_suspend+0x1f/0xa0 async_run_entry_fn+0x3c/0xf0 process_one_work+0x1dd/0x410 worker_thread+0x34/0x3f0 ? cancel_delayed_work+0x90/0x90 kthread+0x14c/0x170 ? kthread_park+0x90/0x90 ret_from_fork+0x1f/0x30 The Linux kernel CVE team has assigned CVE-2021-46914 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 6f82b2558735 and fixed in 5.10.32 with commit be07581aacae Issue introduced in 5.9 with commit 6f82b2558735 and fixed in 5.11.16 with commit f1b4be4a753c Issue introduced in 5.9 with commit 6f82b2558735 and fixed in 5.12 with commit debb9df31158 Please see https://www.kernel.org or 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-2021-46914 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/ixgbe/ixgbe_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/be07581aacae7cd0a073afae8e8862032f794309 https://git.kernel.org/stable/c/f1b4be4a753caa4056496f679d70550d0c11a264 https://git.kernel.org/stable/c/debb9df311582c83fe369baa35fa4b92e8a9c58a