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 01DA4426EA7 for ; Wed, 4 Feb 2026 16:19:15 +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=1770221956; cv=none; b=oAXIJH7geCpsAkA3QP6+mCew4Nkk4ptyqP7az4IPHKNtm4asBTcKezpe8OLp8k6tyNSgynQ8cAGm341akL9tIEzeyMDaSUAoBwuceJRlXZYGQzXg7ktCXqUvXE0om7y7iu6MI+6MyPjps6TCxxhLtHlvqCOqH9Hv+3DcjxTlLJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770221956; c=relaxed/simple; bh=3lrIZfB/V1vIOSJEx925ZUthby1xpMyDAK54bEh3NO8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r4qZ1vR5X5bC06ONAVT+BgGV8wRo8Qgt/8zfhksakld9Ne8nGD5sfznxR5/ImrjetwI0EQLlSjtkr6b23qqt6I7gpA1t22flFMZ+tDFw1lyya5fLiRIXTB1pJZHipzPU3BJXJYYacQ7m6HfhJ42Rc+RBqiFjlRDm+QygJ+rrFsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YPCs9wh2; 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="YPCs9wh2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32769C4CEF7; Wed, 4 Feb 2026 16:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770221955; bh=3lrIZfB/V1vIOSJEx925ZUthby1xpMyDAK54bEh3NO8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=YPCs9wh2CDEuACGqYBq6ZnTHTMd7KyzHaHWxf1x6YiZqOI41RRDtg9i1pj0ZY09qQ T5SQBcdMvxuD/QocYBKUL+bFAf+eiwIkNawXmVQd4ZSWpGY0xHyKvjd//4rTcJZA6j qjZSKrvnGXcmrW/ma4U8PrwW9aCrurdGHXzJsnD0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23068: spi: spi-sprd-adi: Fix double free in probe error path Date: Wed, 4 Feb 2026 17:14:27 +0100 Message-ID: <2026020417-CVE-2026-23068-0852@gregkh> X-Mailer: git-send-email 2.53.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=2789; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZgxzEXI7Ur7uBcWL4f0Ab7EdzTKD1+B+UFIyhCSz49A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnNBZGrpwttj3/LnL6m0DZyQc+XumiVGVP/eDVa75yqJ sy9Sim2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC2cMwT0FtO/tmV/2zDR78 /06Jb/x+lF/0JMOCCUvWPFCsMJEIFlOM5C7XU5xyp3EuAA== 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: spi-sprd-adi: Fix double free in probe error path The driver currently uses spi_alloc_host() to allocate the controller but registers it using devm_spi_register_controller(). If devm_register_restart_handler() fails, the code jumps to the put_ctlr label and calls spi_controller_put(). However, since the controller was registered via a devm function, the device core will automatically call spi_controller_put() again when the probe fails. This results in a double-free of the spi_controller structure. Fix this by switching to devm_spi_alloc_host() and removing the manual spi_controller_put() call. The Linux kernel CVE team has assigned CVE-2026-23068 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit ac1775012058e13ef1522938e27f5973d9e3f053 and fixed in 6.6.122 with commit 417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c Issue introduced in 4.17 with commit ac1775012058e13ef1522938e27f5973d9e3f053 and fixed in 6.12.68 with commit 346775f2b4cf839177e8e86b94aa180a06dc15b0 Issue introduced in 4.17 with commit ac1775012058e13ef1522938e27f5973d9e3f053 and fixed in 6.18.8 with commit f6d6b3f172df118db582fe5ec43ae223a55d99cf Issue introduced in 4.17 with commit ac1775012058e13ef1522938e27f5973d9e3f053 and fixed in 6.19-rc7 with commit 383d4f5cffcc8df930d95b06518a9d25a6d74aac 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-23068 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-sprd-adi.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/417cdfd9b9f986e95bfcb1d68eb443e6e0a15f8c https://git.kernel.org/stable/c/346775f2b4cf839177e8e86b94aa180a06dc15b0 https://git.kernel.org/stable/c/f6d6b3f172df118db582fe5ec43ae223a55d99cf https://git.kernel.org/stable/c/383d4f5cffcc8df930d95b06518a9d25a6d74aac