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 93770182C3 for ; Fri, 15 Mar 2024 20:16:08 +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=1710533768; cv=none; b=HJyrpCkHigAn5BWf/P5Rwc5F+fFoP5FaY5bKdfbwLIlSexq1lcLtmBcSZbqd2gq24RK91TZTWPNy/IsLyIFLK7UkVjsVFTd2GlOjKEyeB6Y3XlpFxAA7HhdWM17occj424m3DSTCISWiPlhZE9654I75+GsF0eAij1RMbq+sCas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710533768; c=relaxed/simple; bh=uLyMEd6an9VXkBzBwFwvqHDiEKQ31B3j2XhjcUmACH0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Zyi36isHiQNQvQHYUrWh4VuXgakCfoOZKuCXBlYEzNjWzACb+NUnoFRjShNlvrVB5OykwH4rF9mJ+9zeDEhLUs/A3kiaPxNnNaxJhoEmdr1czC2+s/ftzqbSSjotG/p+dvXCNyWO5Ljq1P9MMhqY0T94p9nRuNAS5eulRHOARfQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rEmAvyAp; 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="rEmAvyAp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A174BC433C7; Fri, 15 Mar 2024 20:16:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710533768; bh=uLyMEd6an9VXkBzBwFwvqHDiEKQ31B3j2XhjcUmACH0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rEmAvyApKMJC1Jcy+0HG35rA58wQR1n9bYFvuSmxjusPYZ53QyBb6uYdsq0E8UaFk kgi6x3qiaX9Z11yQfIdolrp1E3JMyJZPXPcjTmG10Ij8u2of5+IJ62v+aaXkJLGnvX YknwXKGa6guQ4fLEes4fOxAeTgsbHfihUySxaUwM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47134: efi/fdt: fix panic when no valid fdt found Date: Fri, 15 Mar 2024 21:15:24 +0100 Message-ID: <2024031515-CVE-2021-47134-3348@gregkh> X-Mailer: git-send-email 2.44.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=2028; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uLyMEd6an9VXkBzBwFwvqHDiEKQ31B3j2XhjcUmACH0=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlf1gRf3/ly9jy/h4fOFrs9br36g7HbeuWy84aLTCpiT fXFe7o7OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS2cwzM+5MqMwc8bj3e99 5q5tvW9udfhR9XGG+SU94sG/HmicnZ6yKMT9iGjwxWrhNAA= 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/fdt: fix panic when no valid fdt found setup_arch() would invoke efi_init()->efi_get_fdt_params(). If no valid fdt found then initial_boot_params will be null. So we should stop further fdt processing here. I encountered this issue on risc-v. The Linux kernel CVE team has assigned CVE-2021-47134 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit b91540d52a08b and fixed in 5.10.43 with commit 5148066edbdc Issue introduced in 5.10 with commit b91540d52a08b and fixed in 5.12.10 with commit 8a7e8b4e5631 Issue introduced in 5.10 with commit b91540d52a08b and fixed in 5.13 with commit 668a84c1bfb2 Please see https://www.kernel.org or 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-2021-47134 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/fdtparams.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/5148066edbdc89c6fe5bc419c31a5c22e5f83bdb https://git.kernel.org/stable/c/8a7e8b4e5631a03ea2fee27957857a56612108ca https://git.kernel.org/stable/c/668a84c1bfb2b3fd5a10847825a854d63fac7baa