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 E17915D49A for ; Fri, 17 May 2024 14:27:09 +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=1715956030; cv=none; b=reX14aG4igJK5nFdx3JCZf3wY9cFBUiKrUeAj1l/kmWYGKLLgtAetIghvdtzO8oTiyssvi+8kDtTRBs2+4D5bIE8gmVf/tycxoBDftyc/bQfOuE7KWL1cjjD3fAyvnE47m5r3nn22nSFDa7Go9gwFoBrG0pdyEKgqUpAhwVorFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715956030; c=relaxed/simple; bh=w/EFuEc5f5LBeghY5AQ8DJc+XWUuzXq8SothXwSZu3Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rdz6LVVGj4mgYpzfq9b84cXoAZp694Em9jbXjkzjkNQOWiUzYOL1VtKUZ91Q6WQpQFrqZOFwy7AnvEwiv1BSdKtRnbatTQWX34NVVyOvjSVBXD2mDmJOG/GF/qLlYFG+fkjYSZ59uJIAtMdy8qwNLnOMgEdbyrjXK2lRmlO3mFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h+apJsE2; 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="h+apJsE2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20436C2BD10; Fri, 17 May 2024 14:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715956029; bh=w/EFuEc5f5LBeghY5AQ8DJc+XWUuzXq8SothXwSZu3Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=h+apJsE2qNBZNsbPzPCU/N9c4Zz4tCY6V6fzyu3Sf55vkZ1rpnf6x6ypUs6ooWRJn 7fXFz01RnBi0FtfirQhZLoB5/JYs1Dot+CqMEff9AloKFHqaTKV0CblYb0LUnVnLu/ jd/lHKBzDHoaBPhlrkGpaV/ZzANgG58pcVf/urs0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52684: firmware: qcom: qseecom: fix memory leaks in error paths Date: Fri, 17 May 2024 16:26:57 +0200 Message-ID: <2024051752-CVE-2023-52684-8d25@gregkh> X-Mailer: git-send-email 2.45.1 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=1819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w/EFuEc5f5LBeghY5AQ8DJc+XWUuzXq8SothXwSZu3Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnumToG6l0zdvMUG09x212xKDP0YQDfZcuVWc5GOl9X7 Xs349rFjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI/1+GeRpJKqke0QctRa6r cW1N+Wkb8XXuKYYFXS4bl/K2zXna+TzX5df/9rslqqrFAA== 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: qseecom: fix memory leaks in error paths Fix instances of returning error codes directly instead of jumping to the relevant labels where memory allocated for the SCM calls would be freed. The Linux kernel CVE team has assigned CVE-2023-52684 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 759e7a2b62eb and fixed in 6.7.2 with commit 85fdbf684045 Issue introduced in 6.7 with commit 759e7a2b62eb and fixed in 6.8 with commit 6c57d7b593c4 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-52684 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/85fdbf6840455be64eac16bdfe0df3368ee3d0f0 https://git.kernel.org/stable/c/6c57d7b593c4a4e60db65d5ce0fe1d9f79ccbe9b