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 8542E3CF047 for ; Wed, 22 Apr 2026 13:56:28 +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=1776866188; cv=none; b=ZRXeKaSqT6Q5aXf7CWYrGiLGiIXCNlFm41IMhVO33vVPkfO2v9kfd0xzQnPtyDq1ALv8PxEP/7EsBYDde3uvc8PUNgynucQFPaekz5IdeElskKjO8pJ6xloIBhyuyXQxxdLtpSefmyqhmo2esGjGg71y/F7EdO+Pu2sPQsjN6R8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866188; c=relaxed/simple; bh=I/PDJlmDPuCVSUItJoO73PZjnNemlrwVujzUSh+hnBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mQdyuOAP1+oNJPJl1STe5mAoFLLGmz4xPkDwp9tNT2TKxLSKUq1RZva7aCQ8F+YpSzxG1uScvGnbAjM9DsdeP0jTPS/Pz2QqOJwFwfm5nr6Tc8xVlnPy9lX/7IZuE8r3GNYYYkHIPwTxgHV45BliuAzilLzA5TbCextM9XC1fqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lvMIAVs1; 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="lvMIAVs1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3EE2C19425; Wed, 22 Apr 2026 13:56:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866188; bh=I/PDJlmDPuCVSUItJoO73PZjnNemlrwVujzUSh+hnBk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lvMIAVs1o2z+mH1lWAL52yj5sJK6w55agS3kXpqZBj+5JjFxivLzLSXYGUf1uazuF TglEF8Gtb2mNHJQAxkWYLI48WTdgvGcHMPQMmo82mSVCU6MC4zxVyQLt51cUsPMFsJ Zre6fYUQ1ZcgMSdlCrLt/piH9Xx9xQWLvWbGFfd4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31489: spi: meson-spicc: Fix double-put in remove path Date: Wed, 22 Apr 2026 15:54:35 +0200 Message-ID: <2026042201-CVE-2026-31489-3a01@gregkh> X-Mailer: git-send-email 2.54.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=2871; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+bRCdmI+bX/OSVfbWj8O4ghx2tcMTbxa79hRKk3lbu4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLv18krY94epG+4CzW/3qjloIHfh13Wjz6VNHDXSup l+6IjCBsSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmMtOPYX5I85V2x22RXCkh /RnTNk5LTays2c0wPzFUfn/pXulww/6e372posf9///fDgA= 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: meson-spicc: Fix double-put in remove path meson_spicc_probe() registers the controller with devm_spi_register_controller(), so teardown already drops the controller reference via devm cleanup. Calling spi_controller_put() again in meson_spicc_remove() causes a double-put. The Linux kernel CVE team has assigned CVE-2026-31489 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.12.80 with commit 40ad0334c17b23d8b66b1082ad1478a6202e90e2 Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.18.21 with commit da06a104f0486355073ff0d1bcb1fcbebb7080d6 Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 6.19.11 with commit 9b812ceb75a6260c17c91db4b9e74ead8cfa06f5 Issue introduced in 5.14 with commit 8311ee2164c5cd1b63a601ea366f540eae89f10e and fixed in 7.0 with commit 63542bb402b7013171c9f621c28b609eda4dbf1f Issue introduced in 4.14.244 with commit ff056817560d72363b463ddac27822dc8c121280 Issue introduced in 4.19.203 with commit 683b47d0ebb10ba0d272604b09686e023d10d40c Issue introduced in 5.4.140 with commit a5bf7ef13ebf6adf62a69ab3542d4fc0564c082e Issue introduced in 5.10.58 with commit 05565b469358a9a03034f7f712d83590a9f125a4 Issue introduced in 5.13.10 with commit f2ca988aba4eaad1319e80eb1316a4ba5dbd6897 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-31489 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-meson-spicc.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/40ad0334c17b23d8b66b1082ad1478a6202e90e2 https://git.kernel.org/stable/c/da06a104f0486355073ff0d1bcb1fcbebb7080d6 https://git.kernel.org/stable/c/9b812ceb75a6260c17c91db4b9e74ead8cfa06f5 https://git.kernel.org/stable/c/63542bb402b7013171c9f621c28b609eda4dbf1f