From mboxrd@z Thu Jan 1 00:00:00 1970 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 90A10446B4 for ; Tue, 21 May 2024 15:39: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=1716305976; cv=none; b=Z2MF4NIiATfsfDiQIUpPGIH9dItWQYpV1fNDKO+casnbHFZrA+/hwBMPqrcvfomHnPFxkty2F0DagVLvi63xaIWen8lI/SPu4L/85rlhuCbY5nb/E50kcKlt1vlpqZj9+Wp1o85k2yMelLgl7A/edXPveeBnZS1SAnbDIDJOjE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305976; c=relaxed/simple; bh=LLQdh4oai8Q+C9muRUOeadb+EO6AZ5XfaOFhbXbFw/A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lxylE3YlX7ivoFpNMSSeCMIjFFbvWR6EIWEf10E9IIO+DNGa8y5XSprQSmtcVt+blvZ8BUciF0mfmi+aOa8AvGQkun8DwxC5xreFOY9Z7wqgg8DEzNuxvmMSQG6lOT3yPFRNYHSMkd0NGYW7IUZ5vrv76Pd/vCHkoK9cY8Bp62g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AQVD7PTK; 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="AQVD7PTK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CA45C2BD11; Tue, 21 May 2024 15:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305976; bh=LLQdh4oai8Q+C9muRUOeadb+EO6AZ5XfaOFhbXbFw/A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AQVD7PTK/Pgyr639UxMp9TWfcBRRQvFyYSFzwq1BzbHu5HgdN8/jJ2Vn9TdMP0lVF ekOuw8muQP+FsfFZ5CBggH43lAhfFywLHHBjEO/+DEmywQTTl+Hv/9nivTxdwPkhqz ei5ZNrwx4BPzptaS8K37IDZFXYnTtKREJ3fdDa8E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52871: soc: qcom: llcc: Handle a second device without data corruption Date: Tue, 21 May 2024 17:32:47 +0200 Message-ID: <2024052120-CVE-2023-52871-eaa4@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=2714; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LLQdh4oai8Q+C9muRUOeadb+EO6AZ5XfaOFhbXbFw/A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++zxiNtT2u+lYRTHoCj6Y/vL87OBulxM/Fzm2ZPtkt X34Z9DSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPht2CYyXhmj/G34KALm24t MP/wyPqgOLejD8OC65dk/6z8pPM+lPFnZ8hCNtVmuxtxAA== 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: soc: qcom: llcc: Handle a second device without data corruption Usually there is only one llcc device. But if there were a second, even a failed probe call would modify the global drv_data pointer. So check if drv_data is valid before overwriting it. The Linux kernel CVE team has assigned CVE-2023-52871 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 5.4.261 with commit cc1a1dcb411f Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 5.10.201 with commit 5e5b85ea0f4b Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 5.15.139 with commit 995ee1e84e8d Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 6.1.63 with commit f0ef883cae30 Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 6.5.12 with commit 3565684309e5 Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 6.6.2 with commit 1143bfb9b055 Issue introduced in 4.19 with commit a3134fb09e0b and fixed in 6.7 with commit f1a1bc8775b2 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-52871 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/soc/qcom/llcc-qcom.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/cc1a1dcb411fe224f48553cfdcdfe6e61395b69c https://git.kernel.org/stable/c/5e5b85ea0f4bc484bfe4cc73ead51fa48d2366a0 https://git.kernel.org/stable/c/995ee1e84e8db7fa5dcdde7dfe0bd7bb6f9bbb8c https://git.kernel.org/stable/c/f0ef883cae309bc5e8cdfcdbc1b4822732ce20a8 https://git.kernel.org/stable/c/3565684309e54fa998ea27f37028d67cc3e1dff2 https://git.kernel.org/stable/c/1143bfb9b055897975aeaea254da148e19524493 https://git.kernel.org/stable/c/f1a1bc8775b26345aba2be278118999e7f661d3d