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 99D1C16B395 for ; Wed, 21 Aug 2024 06:11:36 +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=1724220696; cv=none; b=ZGb15zb3jJu3XOwUfxHgVGCSyHXjLy1DH6P6t/URIQMl9NDRNg0OUvJQoCwU16OMlcn7txgDONKO321saD6QsjqA0Wb3LvqgJBlfgTjpFUhj1YLBJzLtplCOgujB/LMYRyFw4S1B7+1QSCij7IlxjLsdwnPgR2b3tolEf77qrMo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220696; c=relaxed/simple; bh=2dnMgnEovrBHpUuChnecexacH9G0F9C3+JYlfhsHT58=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SHvBtyjA/t0nTSuOGRBOJ/gVdSOZdlN4r8J09KABDqSCXbFye6f5G5HgwOZE2sImCZgpghEoq3mlD8U4fFtIh9rKZoamxvuyQutJYdDbOiYtHs6JOphkM3xJClxoeXT7kK13pKqeN8qOrOGl3tgHsLsyjRTpqzwVRDzw3iWYgr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r6CkjkhP; 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="r6CkjkhP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A5B0C32782; Wed, 21 Aug 2024 06:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220696; bh=2dnMgnEovrBHpUuChnecexacH9G0F9C3+JYlfhsHT58=; h=From:To:Cc:Subject:Date:Reply-to:From; b=r6CkjkhPsRUqrKs1LLDrXQbP3qP0o18w3yzUVBDxGEeav2ePkZAnvpjMhZtrqiC6E a2Z7ofL0KFpqA0wWf19SKyhavqvEleoFmPiqykK4gi1Mtf+wbmxo6A8K/HikGMplyP EntRwD/CqXdjHCyvk39+KDGkGb6zk3559AcYBCtE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48879: efi: fix NULL-deref in init error path Date: Wed, 21 Aug 2024 14:11:13 +0800 Message-ID: <2024082107-CVE-2022-48879-63f6@gregkh> X-Mailer: git-send-email 2.46.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=2721; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2dnMgnEovrBHpUuChnecexacH9G0F9C3+JYlfhsHT58=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW35P7n5aLH1v2/pgl72xGjbqtzwCPfZsuTS9un/B2 YYktSWTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAip+oZ5tn1NSy+nR31k8Uu qPH514xriUpPShjmZ++3za4oy8o472S5+2d0QeOBZ9N1AA== 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: fix NULL-deref in init error path In cases where runtime services are not supported or have been disabled, the runtime services workqueue will never have been allocated. Do not try to destroy the workqueue unconditionally in the unlikely event that EFI initialisation fails to avoid dereferencing a NULL pointer. The Linux kernel CVE team has assigned CVE-2022-48879 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.142 with commit 2ff3c97b4752 and fixed in 4.19.270 with commit 585a0b2b3ae7 Issue introduced in 5.4.61 with commit 5167f194da69 and fixed in 5.4.229 with commit 5fcf75a8a4c3 Issue introduced in 5.9 with commit 98086df8b70c and fixed in 5.10.164 with commit 4ca71bc0e199 Issue introduced in 5.9 with commit 98086df8b70c and fixed in 5.15.89 with commit e2ea55564229 Issue introduced in 5.9 with commit 98086df8b70c and fixed in 6.1.7 with commit adc96d30f650 Issue introduced in 5.9 with commit 98086df8b70c and fixed in 6.2 with commit 703c13fe3c9a Issue introduced in 5.7.18 with commit f591a42b8f9a Issue introduced in 5.8.4 with commit e6584124b982 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-2022-48879 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/efi.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/585a0b2b3ae7903c6abee3087d09c69e955a7794 https://git.kernel.org/stable/c/5fcf75a8a4c3e7ee9122d143684083c9faf20452 https://git.kernel.org/stable/c/4ca71bc0e1995d15486cd7b60845602a28399cb5 https://git.kernel.org/stable/c/e2ea55564229e4bea1474af15b111b3a3043b76f https://git.kernel.org/stable/c/adc96d30f6503d30dc68670c013716f1d9fcc747 https://git.kernel.org/stable/c/703c13fe3c9af557d312f5895ed6a5fda2711104