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 E9B8F219E8C for ; Wed, 26 Feb 2025 02:24:29 +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=1740536670; cv=none; b=q33jZBJN2LP9uKvIC9UFevLdR9KFPk9wIqpOiMm7Paug2tBzkRSZJgsI1XWJdxOSxZdomu9yuEj9Av1esy5sAM2I+xc2r0OlG2iFSIbvDCzzmu7MEuohB7uz65T3lk+qOhTQuwKVdpy5zVrESnjfx+Zum7E/pcIzRj5w5a4Q+TI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536670; c=relaxed/simple; bh=oH2uDzDRXjkEiriIpxyvczhxtbWyfc+qMjoq4F3aYPI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=obDLybu4Q2Q/e/AbkSN1EJST+uZ8T2SxZR2VUio9zry02miQeLB1SKzGXnhAjmObmXN4iZwZfCg3l7nqcRlHe7xsNdfAaQkW7C1egKhiiNYtQ4E8lMFd5Hy+hSuO6OiJxIvTkVg3/9SUumQxK2yFcbdfTVymMqGqqZ8vvcefcek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O2NJJiIy; 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="O2NJJiIy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0B75C4CEDD; Wed, 26 Feb 2025 02:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536669; bh=oH2uDzDRXjkEiriIpxyvczhxtbWyfc+qMjoq4F3aYPI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O2NJJiIyWnjwMbdeya2Sx9f+vTW1QTSVE3m5pDuc/XfdyU/UJd7ix8St9nLUMzHOp APKkg8lKH4tkmaK0AcaJ0omAlL0quMae4UDnILJiCpB55zYpLMO8L2R6i86o78Cg9G 93CmEmd2xR5PZY9J+xzzq8FBMOhDKCc73noiR1c0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49624: net: atlantic: remove aq_nic_deinit() when resume Date: Wed, 26 Feb 2025 03:23:07 +0100 Message-ID: <2025022615-CVE-2022-49624-caf9@gregkh> X-Mailer: git-send-email 2.48.1 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=4316; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oH2uDzDRXjkEiriIpxyvczhxtbWyfc+qMjoq4F3aYPI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qq5Pn35zH7P45qP5LHfVAp9XHxVsLurgCznWw3FH8 a+ZQqpeRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyksZphweJ2li2RPIvfXi4U Puk+U6nzmO5JU4b5aRx3Fv3xu63odVGJ7fbzy72MJ2ZyAwA= 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: atlantic: remove aq_nic_deinit() when resume aq_nic_deinit() has been called while suspending, so we don't have to call it again on resume. Actually, call it again leads to another hang issue when resuming from S3. Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992345] Call Trace: Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992346] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992348] aq_nic_deinit+0xb4/0xd0 [atlantic] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992356] aq_pm_thaw+0x7f/0x100 [atlantic] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992362] pci_pm_resume+0x5c/0x90 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992366] ? pci_pm_thaw+0x80/0x80 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992368] dpm_run_callback+0x4e/0x120 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992371] device_resume+0xad/0x200 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992373] async_resume+0x1e/0x40 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992374] async_run_entry_fn+0x33/0x120 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992377] process_one_work+0x220/0x3c0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992380] worker_thread+0x4d/0x3f0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992382] ? process_one_work+0x3c0/0x3c0 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992384] kthread+0x12a/0x150 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992386] ? set_kthread_struct+0x40/0x40 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992387] ret_from_fork+0x22/0x30 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992391] Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992392] ---[ end trace 1ec8c79604ed5e0d ]--- Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992394] PM: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -110 Jul 8 03:09:44 u-Precision-7865-Tower kernel: [ 5910.992397] atlantic 0000:02:00.0: PM: failed to resume async: error -110 The Linux kernel CVE team has assigned CVE-2022-49624 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.117 with commit 6aa239d82e35b9e3eb8e8c7750fd5caa377e1e15 and fixed in 5.10.132 with commit c2978d0124f26e453ed30fda6a37f62d8c7f19cb Issue introduced in 5.15.41 with commit 890a5c6d19817a9db5c981174737d1bc9b6fb1a1 and fixed in 5.15.56 with commit 58c90993933e7a76305519bc70da8c0cd2907c1f Issue introduced in 5.18 with commit 1809c30b6e5a83a1de1435fe01aaa4de4d626a7c and fixed in 5.18.13 with commit 702419db7ded2e3686fbc05040b61d7428d611d5 Issue introduced in 5.18 with commit 1809c30b6e5a83a1de1435fe01aaa4de4d626a7c and fixed in 5.19 with commit 2e15c51fefaffaf9f72255eaef4fada05055e4c5 Issue introduced in 5.17.9 with commit fb45f24264b94e8c37657789dbb1966a07933d12 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-49624 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/aquantia/atlantic/aq_pci_func.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/c2978d0124f26e453ed30fda6a37f62d8c7f19cb https://git.kernel.org/stable/c/58c90993933e7a76305519bc70da8c0cd2907c1f https://git.kernel.org/stable/c/702419db7ded2e3686fbc05040b61d7428d611d5 https://git.kernel.org/stable/c/2e15c51fefaffaf9f72255eaef4fada05055e4c5