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 6F40B1F130C for ; Fri, 27 Dec 2024 14:24: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=1735309460; cv=none; b=UOHh47vgYMUMfwiBmk8l7OJFRXWC7kgOta5vixlZ8awG9u/uqbsJbycn6jtdZGN2DaXGWJXsVmIh8Aa2W1K7LjvP46JMbCrijAb5jVzKhmx2nES1/7m4usFyKtS1dHMrevB7z9txIMze4bsq2BwtYjyWcrnX1NSaS/eyt9BMW9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309460; c=relaxed/simple; bh=5QVIMuVBA/iadbmg/AdfRGv5qCT9vefV62QwWjkB60w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mZ+Jf6/Nxd7/X0nvs1f35XpDMJwMlLdoW75qx/oWpPnQaMY+yCUTrbTtR8NMzurIPdf2An8BECWCHQKO+BpURQ/Gyl6WOrAYqjS3YptFazj9MOqkumHji8f3MCAsT+LyOeW80vj7ANb5UMz0Do1LyjAhX9qfY/Ln8ltuLDDEx5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZEiphAap; 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="ZEiphAap" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA6B7C4CED3; Fri, 27 Dec 2024 14:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309460; bh=5QVIMuVBA/iadbmg/AdfRGv5qCT9vefV62QwWjkB60w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZEiphAapRHnoYBrCRPDU1n/H1gqYyaD6tnNjyYE08dfi/pashYGloKmxgrp/mgUEo F7W4UzlqccT4NCPolGMLHBYYrmXN0hWzxhv7YKnMJrS07KOPKtk30YhyMM7Om3v9jw wlbeX6/AHfj7zXjz6YCBqMdw7GkFQFuPpsF6SIk4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56573: efi/libstub: Free correct pointer on failure Date: Fri, 27 Dec 2024 15:23:24 +0100 Message-ID: <2024122717-CVE-2024-56573-f5d2@gregkh> X-Mailer: git-send-email 2.47.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=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5QVIMuVBA/iadbmg/AdfRGv5qCT9vefV62QwWjkB60w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5O0JfhmxtXf/mdLvkyjCN19u5p71cxP9lwuMZL5tfh fK6XYz27IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHDnKMN+xvk1mRvCCzfzS cQ1mhuxhcvISLgzz9BfItHLMm/z0pEvgKs5JJ14361pPAQA= 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: efi/libstub: Free correct pointer on failure cmdline_ptr is an out parameter, which is not allocated by the function itself, and likely points into the caller's stack. cmdline refers to the pool allocation that should be freed when cleaning up after a failure, so pass this instead to free_pool(). The Linux kernel CVE team has assigned CVE-2024-56573 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.6.64 with commit d173aee5709bd0994d216d60589ec67f8b11376a Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.12.4 with commit eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf Issue introduced in 6.2 with commit 42c8ea3dca094ab82776ca706fb7a9cbe8ac3dc9 and fixed in 6.13-rc1 with commit 06d39d79cbd5a91a33707951ebf2512d0e759847 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-56573 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/firmware/efi/libstub/efi-stub.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/d173aee5709bd0994d216d60589ec67f8b11376a https://git.kernel.org/stable/c/eaafbcf0a5782ae412ca7de12ef83fc48ccea4cf https://git.kernel.org/stable/c/06d39d79cbd5a91a33707951ebf2512d0e759847