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 68C7119D074 for ; Wed, 24 Dec 2025 12:10:33 +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=1766578233; cv=none; b=jtp+Yn5EaGK1Dj35Vj64IHzQfCRxOO6PlyMSdJCBnSuqRjnglIEA0ALe8qgAW8hRimRgm/VD6JwWubFrbBmzvyDrcsg47Z7EHrJ9VLpeGKDfn6nL2m6FfklovsfHvW/gd+8J3ovwSNePlzI0tkg3T2KBmOy2v2PLK/cYHYFc3OM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766578233; c=relaxed/simple; bh=rF/DcRs63+raXagLBLVM7y1umMh2eveoL9JtKzZK+QQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DkECZ4vmITL0FFtZFV+G17ybQoHA91s7KmmyVazBLO1xzOQTbvT3vED54dsuFbOz/7HkgMbzpUUCWhY0KuHCpTLvRMyYwKlALZJlD29oKwn1ysIRS6RZTwOGqqc4Aysv0UMqFt9125T9cCR3Isc38/YMl1hUduiUBp71VbUgGqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EB5KuvFP; 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="EB5KuvFP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFCE9C4CEFB; Wed, 24 Dec 2025 12:10:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766578233; bh=rF/DcRs63+raXagLBLVM7y1umMh2eveoL9JtKzZK+QQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=EB5KuvFPoIctjdDLGpr7Lfqcmxzmv91YvpAe6L4IwDKVInK5xkHX0x2n7P1B0s6ED Lj1CNb66bRgSx5nCGpbun1/aFBCuTkITmOjkVWjuTWhMfJynDc6x4Z1YXzXM/idyP1 3ttywLhYV+YXx2A+NCp+JY/ZqqXoT9de7kmrnKec= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68746: spi: tegra210-quad: Fix timeout handling Date: Wed, 24 Dec 2025 13:10:22 +0100 Message-ID: <2025122416-CVE-2025-68746-bd3e@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3065; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iw/UUr2C4xJ0saqq3moYHByy/3fCVmr8Z4oc1xyKxg4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneNzSYlv9+zHvpyPHZIrvTulM1XzXPNFz4rT5XdN4m5 cd5TIm3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAigq0MC66GaPXES87YsFEu bLFzU8T9tF7e3QyzWdN1cl4cM+Dva9RfnnPgnllNktpsAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: spi: tegra210-quad: Fix timeout handling When the CPU that the QSPI interrupt handler runs on (typically CPU 0) is excessively busy, it can lead to rare cases of the IRQ thread not running before the transfer timeout is reached. While handling the timeouts, any pending transfers are cleaned up and the message that they correspond to is marked as failed, which leaves the curr_xfer field pointing at stale memory. To avoid this, clear curr_xfer to NULL upon timeout and check for this condition when the IRQ thread is finally run. While at it, also make sure to clear interrupts on failure so that new interrupts can be run. A better, more involved, fix would move the interrupt clearing into a hard IRQ handler. Ideally we would also want to signal that the IRQ thread no longer needs to be run after the timeout is hit to avoid the extra check for a valid transfer. The Linux kernel CVE team has assigned CVE-2025-68746 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 921fc1838fb036f690b8ba52e6a6d3644b475cbb and fixed in 6.12.63 with commit 551060efb156c50fe33799038ba8145418cfdeef Issue introduced in 5.12 with commit 921fc1838fb036f690b8ba52e6a6d3644b475cbb and fixed in 6.17.13 with commit bb0c58be84f907285af45657c1d4847b960a12bf Issue introduced in 5.12 with commit 921fc1838fb036f690b8ba52e6a6d3644b475cbb and fixed in 6.18.2 with commit 01bbf25c767219b14c3235bfa85906b8d2cb8fbc Issue introduced in 5.12 with commit 921fc1838fb036f690b8ba52e6a6d3644b475cbb and fixed in 6.19-rc1 with commit b4e002d8a7cee3b1d70efad0e222567f92a73000 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-68746 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-tegra210-quad.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/551060efb156c50fe33799038ba8145418cfdeef https://git.kernel.org/stable/c/bb0c58be84f907285af45657c1d4847b960a12bf https://git.kernel.org/stable/c/01bbf25c767219b14c3235bfa85906b8d2cb8fbc https://git.kernel.org/stable/c/b4e002d8a7cee3b1d70efad0e222567f92a73000