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 71D881EA7CC for ; Mon, 20 Oct 2025 15:27:10 +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=1760974030; cv=none; b=YYudOz0FFcLqBaN8OpXPt0m18JQeyvEFMtohf3pDhjrp+ETv0fy4gBsNc3HgJnn8TVLmtTAORAqkA+7znJ56pAj3uoBvaTRz8PWCjY9ZtWzpkLWXbY6NnyicIm7tYscgmVFH/356NTV5zcSdYJTzUYU0wevSGGNevl8Iqy2Hhsg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974030; c=relaxed/simple; bh=8PYfujgJ1lqHH5o2QEqyRVN1Z5Fgg7pbKEkXQo8Pwu0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hy8dr950tW9kvD/oLBQBTwLW/3FV2UcsqTQEkAI17PTm4l+2xspxaznYDvvdsmR2xkUj/6Pv+cfQlWfv2umdBsfoYmcmlS+R2k68lHSaDxpjHaBoLAiuPyKAu4201vxM2glP/OwjgiPwlGiiXWg0/JhL0p/Y5CqDSjUlTsFalOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e6Clvpgj; 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="e6Clvpgj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99089C4CEF9; Mon, 20 Oct 2025 15:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760974030; bh=8PYfujgJ1lqHH5o2QEqyRVN1Z5Fgg7pbKEkXQo8Pwu0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=e6ClvpgjGSV0NQyoFFBK6gE7eL4zHdkyNSdonfFyW4dpNpln+hiiecfhX3iduxL1F x6Q/l+W1NsM7rXHheXXBQnLhK1PnNUZOQ6Zx6RGmc39bvXAiiMqQO5/E1dU6UHOlB9 +NfNxc9jwnZmkeESBizs4UE4CIIhuF7ypeXs2Rm8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40005: spi: cadence-quadspi: Implement refcount to handle unbind during busy Date: Mon, 20 Oct 2025 17:27:01 +0200 Message-ID: <2025102000-CVE-2025-40005-b351@gregkh> X-Mailer: git-send-email 2.51.1.dirty 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=2155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PHXt2b3Dkjfv3J3Oc3aA76I8q21jGb6iUBqiA8K34mY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnfQo7MMzKPzyx1fdK9oM7mfWzxmXqb+fxXL4oZpyVtW 1SXdI21I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayOp5hrrxOtcf2S7ucmb5K edVoXrjy9vw3J4Z5tn9Cv6W4Vx242MWy1EX51M4pibuLAQ== 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: cadence-quadspi: Implement refcount to handle unbind during busy driver support indirect read and indirect write operation with assumption no force device removal(unbind) operation. However force device removal(removal) is still available to root superuser. Unbinding driver during operation causes kernel crash. This changes ensure driver able to handle such operation for indirect read and indirect write by implementing refcount to track attached devices to the controller and gracefully wait and until attached devices remove operation completed before proceed with removal operation. The Linux kernel CVE team has assigned CVE-2025-40005 to this issue. Affected and fixed versions =========================== Fixed in 6.16.10 with commit b7ec8a2b094a33d0464958c2cbf75b8f229098b0 Fixed in 6.17 with commit 7446284023e8ef694fb392348185349c773eefb3 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-40005 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/b7ec8a2b094a33d0464958c2cbf75b8f229098b0 https://git.kernel.org/stable/c/7446284023e8ef694fb392348185349c773eefb3