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 6BCA9197 for ; Fri, 21 Jun 2024 10:24:37 +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=1718965477; cv=none; b=hZbgo3myMWojVQ2FzzsRAKqW/DJyZyUPTblTaziz0RH7OOFyOhpf+A2KqLVq99l18rfJFbXO/PwC1vRnYIlBCzMsGBfQ+6paWH3tkBVdP1oVRuWXnADJuqmVcu9o2hXqbA/9SatdSDM4ZpyjYdQSS82xKl2Zqq5iw+jO4qa7DNk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965477; c=relaxed/simple; bh=OpANfXDFs4R+OWJOiGGneslF/26G4H9NMWYZxUHH9+o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Zs++0aW8XHkmKw+fKk3oFW9qiXljagsLuNrrBmPRJSLiHvMPYAIEt/QjLSGiAGrIRFRfDyuUNo2AHkFLCRQmW40Mqn/Q4THwV8Y16LF25ZjigXgdbyvT0YPYHJBzeGdXTS3n6KbAwhMIRA7xGW30nsOMTEqp7k5anIT2JTLSBb8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YIWOsOnM; 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="YIWOsOnM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FF77C2BBFC; Fri, 21 Jun 2024 10:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965477; bh=OpANfXDFs4R+OWJOiGGneslF/26G4H9NMWYZxUHH9+o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YIWOsOnMRCnE/xtVuI4GuSYdrhk3QgHx5ZgGkKoKSfXt3GLnZl3s7j2TL21awCZ/p 9JtV2/z3bPPvjPwZtZllHZ97AA1MFc5Ky8TXMgZ0l3EkftoWlU1/iu/BAlsDeGBeGl 3k5SMFIsVRaoewUCncuLfxqWI4ui0PNfvl6uaWjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-33619: efi: libstub: only free priv.runtime_map when allocated Date: Fri, 21 Jun 2024 12:19:32 +0200 Message-ID: <2024062134-CVE-2024-33619-8d3e@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=2376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OpANfXDFs4R+OWJOiGGneslF/26G4H9NMWYZxUHH9+o=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwdtOzptmoBoapXuBOeEES03aG9lPZ76/Zt6a84TN6 pDIefFVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARuRqGeboBpXfK1ryxvvaD exebqPYFlsTbzgzzHUNeTf/SJ244v3z5u/MvZQ+6MNtxAQA= 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: only free priv.runtime_map when allocated priv.runtime_map is only allocated when efi_novamap is not set. Otherwise, it is an uninitialized value. In the error path, it is freed unconditionally. Avoid passing an uninitialized value to free_pool. Free priv.runtime_map only when it was allocated. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. The Linux kernel CVE team has assigned CVE-2024-33619 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit f80d26043af9 and fixed in 6.1.93 with commit b8938d6f570f Issue introduced in 6.1 with commit f80d26043af9 and fixed in 6.6.33 with commit 9dce01f386c9 Issue introduced in 6.1 with commit f80d26043af9 and fixed in 6.9.4 with commit 6ca67a5fe1c6 Issue introduced in 6.1 with commit f80d26043af9 and fixed in 6.10-rc1 with commit 4b2543f7e1e6 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-33619 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/fdt.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/b8938d6f570f010a1dcdbfed3e5b5d3258c2a908 https://git.kernel.org/stable/c/9dce01f386c9ce6990c0a83fa14b1c95330b037e https://git.kernel.org/stable/c/6ca67a5fe1c606d1fbe24c30a9fc0bdc43a18554 https://git.kernel.org/stable/c/4b2543f7e1e6b91cfc8dd1696e3cdf01c3ac8974