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 B491680633 for ; Mon, 29 Jul 2024 17:40:20 +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=1722274820; cv=none; b=u3BML7mkzwOaTpjfVlTo0JofYnvyfB8eJW2ZfeZuZOIOAP02HKYdA1FHjsxmyf3BFLIOF7rczA8SobGpIuv8VTpvIIJiXevq/yQIK8bdbgbAgG6EwNmOITKAbwFjiIDet9llhokgP/jIySAV0b4J5J1p95TzJeywkTaBE0Y5ask= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722274820; c=relaxed/simple; bh=9dUstFBrOG47ByRCvUGK3FL4h7w+LlHNqCzK1L6zp9A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZpeoIK6n1ZS1PyUwSG3eKcgPXkeiOp1V6PPZtH0xgtIYFA1ZUCrXjjD/mHsRQ1Ep2F5h9XUfzLAOrdSdh1iqR9QlE4qeph+4dS292KGwY5/Vcqdg4bAWtxgKk5N/B+1LS62WImPuSeWqvLDwgiLxLbYdUdIicx5RnmCSkfBH9D8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2ELd4e9x; 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="2ELd4e9x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 126E3C32786; Mon, 29 Jul 2024 17:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722274820; bh=9dUstFBrOG47ByRCvUGK3FL4h7w+LlHNqCzK1L6zp9A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2ELd4e9xYy9FLjLnT5/A5NJrGnegwzwBoijyHMB15DtWREFrpKUdY2pPbmPWG/H0Y Dfldfq9s2VeKYSzbKmc6P/r4Ats5prLHsOjTJZ8LfArm1WDP0RKq4KKmEOvQbxgmrG X2HS6LSYiB5rwYaSvtaVk5ktro8X7K4rEbZK1Ir0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42093: net/dpaa2: Avoid explicit cpumask var allocation on stack Date: Mon, 29 Jul 2024 19:40:11 +0200 Message-ID: <2024072910-CVE-2024-42093-9646@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=2524; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9dUstFBrOG47ByRCvUGK3FL4h7w+LlHNqCzK1L6zp9A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLL/+6c5dTPLnWiNvxiJLyt2QdwYDZbzQv1sgxJc4Xf Pf3ZbB7RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk6AjDHO4WcTY9OR/72/9P rSg9GpNeMiODlWGerdSOmcye+d9nnlcwVwrdZNf7o4ofAA== 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/dpaa2: Avoid explicit cpumask var allocation on stack For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask variable on stack is not recommended since it can cause potential stack overflow. Instead, kernel code should always use *cpumask_var API(s) to allocate cpumask var in config-neutral way, leaving allocation strategy to CONFIG_CPUMASK_OFFSTACK. Use *cpumask_var API(s) to address it. The Linux kernel CVE team has assigned CVE-2024-42093 to this issue. Affected and fixed versions =========================== Fixed in 5.4.279 with commit b2262b3be27c Fixed in 5.10.221 with commit 763896ab62a6 Fixed in 5.15.162 with commit a55afc0f5f20 Fixed in 6.1.97 with commit 48147337d7ef Fixed in 6.6.37 with commit 69f49527aea1 Fixed in 6.9.8 with commit 5e4f25091e6d Fixed in 6.10 with commit d33fe1714a44 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-42093 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/dpaa2/dpaa2-eth.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/b2262b3be27cee334a2fa175ae3afb53f38fb0b1 https://git.kernel.org/stable/c/763896ab62a672d728f5eb10ac90d98c607a8509 https://git.kernel.org/stable/c/a55afc0f5f20ba30970aaf7271929dc00eee5e7d https://git.kernel.org/stable/c/48147337d7efdea6ad6e49f5b8eb894b95868ef0 https://git.kernel.org/stable/c/69f49527aea12c23b78fb3d0a421950bf44fb4e2 https://git.kernel.org/stable/c/5e4f25091e6d06e99a23f724c839a58a8776a527 https://git.kernel.org/stable/c/d33fe1714a44ff540629b149d8fab4ac6967585c