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 1595916C85D for ; Wed, 21 Aug 2024 06:12:47 +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=1724220767; cv=none; b=L3z0g/21dNr5kzSnSsc2AIjTtuDPWH5z7Sz8sk8BsTkVbEFtzowA6hdvhSiZIJ1K2r0S76c1C6WFPWlxOwPjQwJ3Vqfh8b8XG1fumYRXZ0ZlIFk5cdP2kXBenFa1MvUwNuZ4lG64piwAVlw1/hbkwKdoDRWojeHjXegLk0+qh9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220767; c=relaxed/simple; bh=7YAwoDSeGQPqipyOXzARxzVnS8vCo5Kwoc9Zv2PkyfU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MdRna3bR1FGXQawPzwut2hvFWklF5zLu8ucqBgnp2h3oOkCiulBxEWXUVQzsYBRBH9Ik/TaKP/wvv0YgGq+DAPJjsj+vGOGE5BT82JEfvHcSeXQJcGol8WMD6IrxSOmkk6rAxeKXGuf25+dFSix6pyDbDq7EeHwoMRYtntEddRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wrVwJ19H; 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="wrVwJ19H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 976B3C32782; Wed, 21 Aug 2024 06:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220767; bh=7YAwoDSeGQPqipyOXzARxzVnS8vCo5Kwoc9Zv2PkyfU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wrVwJ19H+UUaI0RivFqh04zFRg+8t9wBAIJzI06kHvNSi0J1JzxrhEB5WVcmSBt9F mxUXY2sByGwjgwN8dONF+UC7fky/K3TCQBF8AlNL7nCfSXATTPiG2TsDXN4haQ0HZI 4wgCklKSuMRrLIE+4jUwLkF5d8GJyvwPV71IYQ4o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52893: gsmi: fix null-deref in gsmi_get_variable Date: Wed, 21 Aug 2024 14:11:34 +0800 Message-ID: <2024082111-CVE-2023-52893-02b9@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=2759; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7YAwoDSeGQPqipyOXzARxzVnS8vCo5Kwoc9Zv2PkyfU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/7HfTy850zujZO5v6IWp2e5zvCY8/q9/q/D/XeWL GvWuCh1qyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8sCRYb6/vWvnxsv/VzZf 25f35vlDnpTTDNxA0TkvN6iL3U9m69Bi/zvtkZBxdKswAA== 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: gsmi: fix null-deref in gsmi_get_variable We can get EFI variables without fetching the attribute, so we must allow for that in gsmi. commit 859748255b43 ("efi: pstore: Omit efivars caching EFI varstore access layer") added a new get_variable call with attr=NULL, which triggers panic in gsmi. The Linux kernel CVE team has assigned CVE-2023-52893 to this issue. Affected and fixed versions =========================== Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 4.14.304 with commit ee5763ef829b Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 4.19.271 with commit 32313c11bdc8 Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 5.4.230 with commit ffef77794fb5 Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 5.10.165 with commit ae2a9dcc8caa Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 5.15.90 with commit eb0421d90f91 Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 6.1.8 with commit 6646d769fdb0 Issue introduced in 3.0 with commit 74c5b31c6618 and fixed in 6.2 with commit a769b05eeed7 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-2023-52893 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/google/gsmi.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/ee5763ef829bd923033510de6d1df7c73f085e4b https://git.kernel.org/stable/c/32313c11bdc8a02c577abaf865be3664ab30410a https://git.kernel.org/stable/c/ffef77794fb5f1245c3249b86342bad2299accb5 https://git.kernel.org/stable/c/ae2a9dcc8caa60b1e14671294e5ec902ea5d1dfd https://git.kernel.org/stable/c/eb0421d90f916dffe96b4c049ddf01c0c50620d2 https://git.kernel.org/stable/c/6646d769fdb0ce4318ef9afd127f8526d1ca8393 https://git.kernel.org/stable/c/a769b05eeed7accc4019a1ed9799dd72067f1ce8