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 420C96BFBC for ; Thu, 4 Apr 2024 08:24:28 +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=1712219068; cv=none; b=itFlUCohw/CAttQSCJuKavIy7tnzhihUiIFPU+yFv1IMIKdFLO9SzvCFUE2uwXvEwMW24PpPOIGvY8t6KYJKl4rCstXf2v64GGD9CP9IudcaB/87N5NAvabpWmTOTvAC1O0dlnVQDUDw5ls4ev1HA56zsHwdInbmlpAjhIaOOuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219068; c=relaxed/simple; bh=2DMMMtbjS0FVc2zT/W2kLLLXPJwebgYc/XEjaZmtUu0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l+is1xzBdSajetnC6fBd2zsgG+zonmnq2kMMmUZo4uI6ER34FDQ1mcpUt5nHaL0FD06PlZSVCgio58QGzurDUeA/RU7i4UlP1SC6VjjUW8Y5SFl/Wk6l9BANlRpgBOkC5A4EDXDrWZqX15WB1WqmkIlr/iGf///g+X66wENnXCA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=De4cpvVu; 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="De4cpvVu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6B33C433C7; Thu, 4 Apr 2024 08:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712219068; bh=2DMMMtbjS0FVc2zT/W2kLLLXPJwebgYc/XEjaZmtUu0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=De4cpvVu37sVIQKMNecnG99I9tGsbMa/XnhW9pKUQkglvFjGIlwSMAhkIrsZT3dus bb9Q+QZ8uF8VHRLjEiCDMGGfANS67IJavkDJC/N+DCsegEsaTOYj8PHH3IXZtE5p2U GsAPh94UYiV6JmrRZ8o+jDp+wk3BbxWgOnf54lK8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26807: spi: cadence-qspi: fix pointer reference in runtime PM hooks Date: Thu, 4 Apr 2024 10:23:24 +0200 Message-ID: <2024040405-CVE-2024-26807-c071@gregkh> X-Mailer: git-send-email 2.44.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=2557; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2DMMMtbjS0FVc2zT/W2kLLLXPJwebgYc/XEjaZmtUu0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl8yZkyV+0Dft1rUGn4x6S4ryg44fK+Tpn4aYdU7jccd /2q+39PRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEeCbDgktJbAvsy9qeb3Xf durakVyFPlXRaIYFc1933ez1smp59MCvzzl0XWM9P2cHAA== 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: spi: cadence-qspi: fix pointer reference in runtime PM hooks dev_get_drvdata() gets used to acquire the pointer to cqspi and the SPI controller. Neither embed the other; this lead to memory corruption. On a given platform (Mobileye EyeQ5) the memory corruption is hidden inside cqspi->f_pdata. Also, this uninitialised memory is used as a mutex (ctlr->bus_lock_mutex) by spi_controller_suspend(). The Linux kernel CVE team has assigned CVE-2024-26807 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 2087e85bb66e and fixed in 6.6.21 with commit 03f1573c9587 Issue introduced in 6.4 with commit 2087e85bb66e and fixed in 6.7.9 with commit 34e1d5c4407c Issue introduced in 6.4 with commit 2087e85bb66e and fixed in 6.8 with commit 32ce3bb57b6b Issue introduced in 4.19.283 with commit e3f9fc9a4f14 Issue introduced in 5.4.243 with commit 6716203844bc Issue introduced in 5.10.180 with commit b24f1ecc8fe2 Issue introduced in 5.15.111 with commit d453f25faf68 Issue introduced in 6.1.28 with commit 79acf7fb856e Issue introduced in 6.2.15 with commit 18cb554e9da8 Issue introduced in 6.3.2 with commit 1368dbc0a432 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-2024-26807 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/spi/spi-cadence-quadspi.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/03f1573c9587029730ca68503f5062105b122f61 https://git.kernel.org/stable/c/34e1d5c4407c78de0e3473e1fbf8fb74dbe66d03 https://git.kernel.org/stable/c/32ce3bb57b6b402de2aec1012511e7ac4e7449dc