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 3132D1A8F63 for ; Thu, 27 Mar 2025 16:47: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=1743094048; cv=none; b=e7+JzE3s+U0/WIckM9QEC07jfWSnT80AodPWUb4cQzMv486ieJJHrNmGk21FzNgnnqnUOBe21EJQWf4JzWrbZeU+XWHiR44L2Rr+lXp4Cvf6RH2dz6MYrsyZt5/GXjGsbSoTbOIPCdIad/OUfKT0qNQPx2IoLBaBVVeG73G8nuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743094048; c=relaxed/simple; bh=cjaXer0SC4hV6Ep24ETXzsUCIi6Rmb0WFapIeSUrtLk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b5kY+E71dh4ZSWKUAFWhJ8XpkT9gOrcNJ3W8lEWh/tLqz9L5ensSlj0BRMJ0S5ZCuyVVn0M6NNprFaSFVwh+Y9gGmjy/qcFyw2J8GLuDlMZtuhSq8Sw/6BAUchV8pckrCR1E0iT6wG8Bv4EfEvnZeNNr7Ptgp3TqBFtHQvwOy5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mBP/GMOa; 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="mBP/GMOa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98EC1C4CEDD; Thu, 27 Mar 2025 16:47:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743094048; bh=cjaXer0SC4hV6Ep24ETXzsUCIi6Rmb0WFapIeSUrtLk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mBP/GMOambxY9jj6NqyhwoRtgJX5dR3ixXCxN8MFf/ulzfSkCUAnl2Uj7HJ1jNfZh qvYBU9ABWyR9vomlBGqww1eB+hXfg1ZbfO8gqnu+qMcA7Gr3om99r6MFjEYmcEaMJf Jkw4AZNd73I3+sZ1U0jBfyiVM0HaViYDV3d8UQ98= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53030: octeontx2-pf: Avoid use of GFP_KERNEL in atomic context Date: Thu, 27 Mar 2025 17:44:17 +0100 Message-ID: <2025032720-CVE-2023-53030-ba50@gregkh> X-Mailer: git-send-email 2.49.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=3094; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cjaXer0SC4hV6Ep24ETXzsUCIi6Rmb0WFapIeSUrtLk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGzRu7Lz1UP//5suOUy7/fmu4XPbXxMcfZQVtwzuq5 jx6deDXgo5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYCJ80w4K9E6Yo71mopJ0j 1vTRn/VvzAqFqxwM8wM+GUmWrxTnkZsW0fur7sIKF+XnjQA= 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: octeontx2-pf: Avoid use of GFP_KERNEL in atomic context Using GFP_KERNEL in preemption disable context, causing below warning when CONFIG_DEBUG_ATOMIC_SLEEP is enabled. [ 32.542271] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 [ 32.550883] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 [ 32.558707] preempt_count: 1, expected: 0 [ 32.562710] RCU nest depth: 0, expected: 0 [ 32.566800] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G W 6.2.0-rc2-00269-gae9dcb91c606 #7 [ 32.576188] Hardware name: Marvell CN106XX board (DT) [ 32.581232] Call trace: [ 32.583670] dump_backtrace.part.0+0xe0/0xf0 [ 32.587937] show_stack+0x18/0x30 [ 32.591245] dump_stack_lvl+0x68/0x84 [ 32.594900] dump_stack+0x18/0x34 [ 32.598206] __might_resched+0x12c/0x160 [ 32.602122] __might_sleep+0x48/0xa0 [ 32.605689] __kmem_cache_alloc_node+0x2b8/0x2e0 [ 32.610301] __kmalloc+0x58/0x190 [ 32.613610] otx2_sq_aura_pool_init+0x1a8/0x314 [ 32.618134] otx2_open+0x1d4/0x9d0 To avoid use of GFP_ATOMIC for memory allocation, disable preemption after all memory allocation is done. The Linux kernel CVE team has assigned CVE-2023-53030 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.87 with commit 6ea5273c71dd2d07c0a2459594eb34bc087939f7 and fixed in 5.15.91 with commit 2827c4eb429db64befdca11362e2b1c5f524f6ba Issue introduced in 6.1.5 with commit 667ce030bdfb62a86266444b2c3fd6ab98b9df9b and fixed in 6.1.8 with commit 1eb57b87f106c90cee6b2a56a10f2e29c7a25f3e Issue introduced in 6.0.19 with commit b754dc7c933dd9464223f64b10d33d68ab086cc6 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-2023-53030 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/marvell/octeontx2/nic/otx2_common.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/2827c4eb429db64befdca11362e2b1c5f524f6ba https://git.kernel.org/stable/c/1eb57b87f106c90cee6b2a56a10f2e29c7a25f3e https://git.kernel.org/stable/c/87b93b678e95c7d93fe6a55b0e0fbda26d8c7760