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 83CA823FC4C for ; Thu, 3 Apr 2025 07:19: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=1743664776; cv=none; b=OT2y+KA5908XJxIkAgsQTJHOa8XHdjwPgIsgWyACAE9gnblz9WIqYGhynvjNaOQll4HeAyZv0SBGRJfFpSy7krAkG3OVdqUIPnAiaTtpz3dWHIaCZakPjYxucqtbZ1IQI3x0gtC98Rd6afBKOaa8RvfmxfxmxErTNwRoFtLsy3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743664776; c=relaxed/simple; bh=5q2UAfzIK4J0TkYcpmZdAu5RAo4QLKI4LhSibpPt5bo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hnq77/Rlqdf1LpEwWZ3ia085NkOJph0KZrq1awVV3YhWBr34+2an9B0UyTMS+80uIk2/Vyj3QhGVAq6nn4GH/bSRMKE43zx8GcieRbVgG9pMfYydZNQjOixE5lE7WT3R5/y0oeuts7VJHg1eb3rkFLvwxMiSfjoBJv4iLYTOII8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ciYXc9YL; 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="ciYXc9YL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F309C4CEE3; Thu, 3 Apr 2025 07:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743664776; bh=5q2UAfzIK4J0TkYcpmZdAu5RAo4QLKI4LhSibpPt5bo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ciYXc9YLa2Qw4ywvOADvid1/ZrR/YindkdP6p8+V9u/8CPju/Jk7n4fiHpK35lYsY XDSP1PJrM/YViznAwc0ZzBdoB9kiQ+P8OTy6qyOQVTbQUfl8Dz23WHQompjWlXHlL9 XkI4dS0DWfYM3ZMWFUZKDjyavSLgOqy4G+FCpRBM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21998: firmware: qcom: uefisecapp: fix efivars registration race Date: Thu, 3 Apr 2025 08:17:50 +0100 Message-ID: <2025040348-CVE-2025-21998-b57d@gregkh> X-Mailer: git-send-email 2.49.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=2322; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5q2UAfzIK4J0TkYcpmZdAu5RAo4QLKI4LhSibpPt5bo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnvzGTYd8fEsnWntjzYyRlY8lHozH7BygupgoktZ2xq4 1vb67w7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCKWkQwLDvl3foyIYXl+Wetb h3/whpu1pj8XMcwPaHRjW+T/b+r9PrOQa9+NhK1KqvwB 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: firmware: qcom: uefisecapp: fix efivars registration race Since the conversion to using the TZ allocator, the efivars service is registered before the memory pool has been allocated, something which can lead to a NULL-pointer dereference in case of a racing EFI variable access. Make sure that all resources have been set up before registering the efivars. The Linux kernel CVE team has assigned CVE-2025-21998 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 6612103ec35af6058bb85ab24dae28e119b3c055 and fixed in 6.12.21 with commit c4e37b381a7a243c298a4858fc0a5a74e737c79a Issue introduced in 6.11 with commit 6612103ec35af6058bb85ab24dae28e119b3c055 and fixed in 6.13.9 with commit f15a2b96a0e41c426c63a932d0e63cde7b9784aa Issue introduced in 6.11 with commit 6612103ec35af6058bb85ab24dae28e119b3c055 and fixed in 6.14 with commit da8d493a80993972c427002684d0742560f3be4a 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-2025-21998 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/qcom/qcom_qseecom_uefisecapp.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/c4e37b381a7a243c298a4858fc0a5a74e737c79a https://git.kernel.org/stable/c/f15a2b96a0e41c426c63a932d0e63cde7b9784aa https://git.kernel.org/stable/c/da8d493a80993972c427002684d0742560f3be4a