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 B663C2773D4 for ; Wed, 1 Oct 2025 07:55:35 +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=1759305335; cv=none; b=dcjQCTQ4pcaUH5a3Eokk8RYCnz9ZgHOHllkdwXQFy5T/TgYxBpaTWPgiqv/KdsZypXOWhvBv80QgR/YFF9cqp5U6bBeDS2RkGUhV8nX8FCaYy6RX9rjzbwKGKwl2ULnvzGAeiJ1FpsCBtGiXIFMg47aXnp2fOSKooUwCrJY7SjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759305335; c=relaxed/simple; bh=7y1Y7pJQxtQjYoCPMQdve/YGrRxQl/Mg6X2MMTIruA4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cNkEyXbf+vN6IuXFACOgDYSb0A2rnCdTtkQZLNZyD6oErP3Xw4UftIJM+sbzo+Sr2CpnEVlMD6aSadYLr+Aq9FkrgT2G7rcvajFazWC7Sthm5HOqPcX05McVx/o+yC7lMAtGjZ2GHPRxYPALrX0e9UiwpEKpirQrGyoM7HwfONs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yQyIdP9t; 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="yQyIdP9t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A294C4CEF5; Wed, 1 Oct 2025 07:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759305335; bh=7y1Y7pJQxtQjYoCPMQdve/YGrRxQl/Mg6X2MMTIruA4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yQyIdP9tw8rMQRYXvUq7FrQ5KqBTWAjcG7n4Yr7bHR1ES8RCsX7nHHbX6v1mVZyZU KUo9OkIjWHdXri1Tl6QFgQQW/B/tA9OA/FF3OduiJ7Sg3PhcRUbV8zn2zZ5A4OnZz4 SB3jXKDBUyvmV/Umai9Ufl78PyRpNWVEwjN91byM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39921: spi: microchip-core-qspi: stop checking viability of op->max_freq in supports_op callback Date: Wed, 1 Oct 2025 09:55:23 +0200 Message-ID: <2025100120-CVE-2025-39921-820c@gregkh> X-Mailer: git-send-email 2.51.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=2498; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TGAa83/vjcGPYjjfwrDUGMSgZgELE0GxWhh1J475wMM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl37mX8vXr09ZR7L3V78n7pRqlc/Dpz0SGPr4F178v8m 4LMijmWdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1l5nmF/x8iZrI5/m1GWv qyrW2UYtinfL72WYZ55YZVClrtJTHjzxebrvhevyXrkvAQ== 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: microchip-core-qspi: stop checking viability of op->max_freq in supports_op callback In commit 13529647743d9 ("spi: microchip-core-qspi: Support per spi-mem operation frequency switches") the logic for checking the viability of op->max_freq in mchp_coreqspi_setup_clock() was copied into mchp_coreqspi_supports_op(). Unfortunately, op->max_freq is not valid when this function is called during probe but is instead zero. Accordingly, baud_rate_val is calculated to be INT_MAX due to division by zero, causing probe of the attached memory device to fail. Seemingly spi-microchip-core-qspi was the only driver that had such a modification made to its supports_op callback when the per_op_freq capability was added, so just remove it to restore prior functionality. The Linux kernel CVE team has assigned CVE-2025-39921 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 13529647743d906ed3cf991f1d77727e7ff1fb6f and fixed in 6.16.6 with commit ac8a13f35d5b8996582b3f97b924838a5c570c18 Issue introduced in 6.14 with commit 13529647743d906ed3cf991f1d77727e7ff1fb6f and fixed in 6.17 with commit 89e7353f522f5cf70cb48c01ce2dcdcb275b8022 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-39921 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-microchip-core-qspi.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/ac8a13f35d5b8996582b3f97b924838a5c570c18 https://git.kernel.org/stable/c/89e7353f522f5cf70cb48c01ce2dcdcb275b8022