From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796048923; b=AjtSpHGWbwTW6cVZyvhP9fubw/jACjFcb+WGMFdAO6QbPoAWbtu/TB6GeiQW5iDFVK2c o/CKrOdnrtMDjBQGNgyl74TAVOkwYuK62a2/f12v6jCftMV0gSop0nPJMShrvFJIqXwyV SlPvd4b6iardOwwdWS+A4XMesUzy+ylorw6CEqsca7sTtrj5QbwuIjBKr2HCp75+rDS+H 8ADdVyO3NGmqeBudalh5Fn/vpgeMWRefgbSTAesv5PCxNJHRPYAUTKI518GAmQRcVVhq2 B8EgulZGHD5rzAoMqRZg/VmY3hEHj5BqC1lnoZDDmuFrXg750uGQEZHS4/f9Rj3akmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796048923; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=hLLka/vDOcdiHM+tKrldDTxLYQP+tdQl82wQSHtFbSU=; b=p9dYKdyAL6hSaIPlozD5V9qnLBbAGZJmUvWfE/TEi8uwU5yI+2vjQaxRzrQTj5f/YE2d EthzKMNa0gXtu7i2YiN9Dmlx5IYO/uC9pwRQmsqdAcBNILwTXU5V9Ot3Ye3lWeOfVa10J 48ZIh93a6yYUXheIV3fEkC8CBW7POgY14vvOC9Sdxx61uhQJknFA8rWUyeEl4/Fh8yPVj A1jHDQ3XpGjIMHioR/NuVdQLESbBOPV4VoIUY/iBOeJ0xrDC8bzMqzYOkMQMWTBDJi+tS mzISsI09w0qQbod0qbLyNKEOKyYdt0KXSuvh0gIM0yNaHHCnCk8gLo2jE2HzU+tUv4Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1UDMpzWJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DBF4606A339 for ; Mon, 30 Nov 2026 14:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=1UDMpzWJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D4661F00898; Mon, 30 Nov 2026 14:28:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796048922; bh=hLLka/vDOcdiHM+tKrldDTxLYQP+tdQl82wQSHtFbSU=; h=From:To:Cc:Subject:Date:Reply-To; b=1UDMpzWJrFKLzn9WidlLfIn0hHM2BDzt6+rcKZq0JGtYk8ddBaankrQkt3w1I++lm 7NvwIk+fNTQBv+v1eaT/j00ZrjLoXXSQNmaUtOjfWv85FCCV0oIj7HFkG+HmRPr9Hg M8qgCn6ujpvDGOb45X6SBf8FeKjVbw7hHfl05Jpg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139756: spi: amlogic: spisg: Fix transfer size limit and timeout handling Date: Mon, 30 Nov 2026 14:42:45 +0100 Message-ID: <2026113034-CVE-2026-139756-e7aa@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6Hy9r5+beTTDCd8ro1q7Kmr9Ko4VUtnE8g/e+MqMjCs=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm81XrfzlzdF3zM6+gSbRPpbbHFVtZ9X1RMvCYnyx9ou pQ7vb+yI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSo84wV2DP2fS7kRwVLznW 7emUObGjUGiWD8OCqw9TJNukwjMnZ1pPPdB24pBh/SUtAA== 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: amlogic: spisg: Fix transfer size limit and timeout handling The CFG_BLOCK_NUM field can encode at most 20 bits, so reduce SPISG_BLOCK_MAX to 0xfffff to avoid programming a zero-length transfer. Perform the delay calculation in 64-bit arithmetic to avoid overflow when converting nanoseconds to SPI clock cycles. Stop the controller on transfer timeout by clearing the descriptor list register before returning an error. The Linux kernel CVE team has assigned CVE-2026-139756 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 6.18.65 with commit c060b90ee665c8efeddfed07c4333c9537631369 Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 7.3.6 with commit fac2c0c331901317fcd3bed30ef2c91bfd2c7ffc Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 7.4-rc1 with commit 754d2bbd92f5ecef0eb4f5b1ac7b1417320a56ca 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-2026-139756 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-amlogic-spisg.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/c060b90ee665c8efeddfed07c4333c9537631369 https://git.kernel.org/stable/c/fac2c0c331901317fcd3bed30ef2c91bfd2c7ffc https://git.kernel.org/stable/c/754d2bbd92f5ecef0eb4f5b1ac7b1417320a56ca