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 66E3F34D4F5 for ; Fri, 3 Apr 2026 15:24:43 +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=1775229883; cv=none; b=EHioLM74a6bc1EqEAUkOupmPN/xuqIN1I3tfyhJ2O835JbMKDfAXe3LIEaUXZqq63aRPBSMKSr5ALcOklldUveZ5l4/PycY5QYGLiZWgfdxloUf8/ayrGrIB1q0MMs5RYwJL1PCZ516uznEMy9iXSywouzFhTNTloUlnbObzM3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229883; c=relaxed/simple; bh=oTp+HAvUAyJTEhzrDikiQbylDJtsygZeqiO0pBuWjK4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TVn3Hyxh9csoc1MQ4oyfsbx4RZAtK1RZyzkzxBv0R2eKtq08Az2YqgUvy+WcGAozu63XT8zCWpghAVhKUqVFgXUB3ZeaS00vG+1Ol1MY1D4KorXEAxfyIQ0Xc22XVyvfYJcikAxo2+vjp9fJ1PlEDvZD+EIydOed16pcr9CmYZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xABmG+JA; 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="xABmG+JA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7972C19421; Fri, 3 Apr 2026 15:24:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229883; bh=oTp+HAvUAyJTEhzrDikiQbylDJtsygZeqiO0pBuWjK4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=xABmG+JA2xmU9BG7Nr83Bbdww+x9sanAlSqIhz9lk++ZEA/pI7faQPJN8fHcWgBQW AoVtDQ2Nlc53aMgSiWwgqIbj+vAqaGkK11iCLrXgFCQJALxJaygbu/o/+RACO3L07R jMjqT3pNvs23LrN3QQ2skbwkEwA+K38TBUH3xW4c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23431: spi: amlogic-spisg: Fix memory leak in aml_spisg_probe() Date: Fri, 3 Apr 2026 17:18:12 +0200 Message-ID: <2026040311-CVE-2026-23431-3aee@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=2332; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dfJMzk8wJNKrjK95Ro8uLql3D/x4RWZ2bTFNxPSDNQs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnbxknmfMwWgh37Nuu8KfhcZaNUWfaioCPuhc4/jxu2 rMt7timjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIjALDfLfkE8snX/xxN75E ccpWu+n+R856nGCYn3p3onptjLj7HJ31k6Ydf6kZmHB5MgA= 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 memory leak in aml_spisg_probe() In aml_spisg_probe(), ctlr is allocated by spi_alloc_target()/spi_alloc_host(), but fails to call spi_controller_put() in several error paths. This leads to a memory leak whenever the driver fails to probe after the initial allocation. Convert to use devm_spi_alloc_host()/devm_spi_alloc_target() to fix the memory leak. The Linux kernel CVE team has assigned CVE-2026-23431 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 6.18.20 with commit bec21d97c968a4806939eb2946df49ea6c341bde Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 6.19.10 with commit 8e28a01b69f7ea8df7ceb15470cfe643b2828f4f Issue introduced in 6.17 with commit cef9991e04aed3305c61c392e880f6e01a0c2ea4 and fixed in 7.0-rc5 with commit b8db9552997924b750e727a625a30eaa4603bbb9 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-23431 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/bec21d97c968a4806939eb2946df49ea6c341bde https://git.kernel.org/stable/c/8e28a01b69f7ea8df7ceb15470cfe643b2828f4f https://git.kernel.org/stable/c/b8db9552997924b750e727a625a30eaa4603bbb9