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 A878233D6C1 for ; Sat, 31 Jan 2026 11:45:11 +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=1769859911; cv=none; b=pDctmKoa2wGyFfh9nvnFInGljK98CI0CNoCinCOTtV5zuDDgXviexw1P1B6Zov08hXiPVwE9Y5R4xCgSfx1FZQ9zHXZOuictAVt/P5TcC2+WSQFSUZNPRh3vh2u98TumbqzbuV8DgSaGuMjwSsbPplRktYd0Fbmu3FR4O5DFhfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769859911; c=relaxed/simple; bh=0r8x26SZLAt0endp7wKwYeoZA/A4ghhzFIddoDAHcH0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PfAI4VpM9bGJQuKqwmvf3zTB8A9UqGn0V2DIAhcbZQnkF7W7RTMSt6qnAtylZAaXgii8peKKjJdP/k3JMD4K7T7Oqlm1r44+G7Tplv1Cwh9vp5efFQHlZKReUJuhp34RLTH78eX1RtWQsMPFKUoIdsAhYXtfm9MEpEmIU/vTXWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PEu+sXFG; 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="PEu+sXFG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D64AC4CEF1; Sat, 31 Jan 2026 11:45:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769859911; bh=0r8x26SZLAt0endp7wKwYeoZA/A4ghhzFIddoDAHcH0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=PEu+sXFGDjTdb5DPCbT4ZtMuhZkNKa41JC98wtbojGP0Cackf2XoaqwJdd4TMTDf5 5mxu5wHMSj7wM1wrsdqAmeaElbOgS9ltOejvgkb4fWLicZFocgsHEBSH6s6wYDZ1IK tTYve+dHGur+OZVsuo5sHdZgdEEUGv+q3Ry2mv7M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23026: dmaengine: qcom: gpi: Fix memory leak in gpi_peripheral_config() Date: Sat, 31 Jan 2026 12:44:26 +0100 Message-ID: <2026013119-CVE-2026-23026-5ca7@gregkh> X-Mailer: git-send-email 2.52.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=2836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zOiwDnfy3Tk8r6tvB/vLEl5PjhdrHT+wSeIimEOXwW0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm1r4WNNgQGf/CLeVUdLTCbufxEj/B2hjcMu/mVuU4sN nnNPLGuI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCFs4w3/3fLWE/sTiHrQsS 2/YcP/tWLcTjLcOCxe9vpDG9eXZl+0aWH2/s/uYdD34gAwA= 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: dmaengine: qcom: gpi: Fix memory leak in gpi_peripheral_config() Fix a memory leak in gpi_peripheral_config() where the original memory pointed to by gchan->config could be lost if krealloc() fails. The issue occurs when: 1. gchan->config points to previously allocated memory 2. krealloc() fails and returns NULL 3. The function directly assigns NULL to gchan->config, losing the reference to the original memory 4. The original memory becomes unreachable and cannot be freed Fix this by using a temporary variable to hold the krealloc() result and only updating gchan->config when the allocation succeeds. Found via static analysis and code review. The Linux kernel CVE team has assigned CVE-2026-23026 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 5d0c3533a19f48e5e7e73806a3e4b29cd4364130 and fixed in 6.6.122 with commit 6bf4ef078fd11910988889a6c0b3698d2e0c89af Issue introduced in 5.11 with commit 5d0c3533a19f48e5e7e73806a3e4b29cd4364130 and fixed in 6.12.67 with commit 01b1d781394fc9b83015e3a3cd46b17bda842bd8 Issue introduced in 5.11 with commit 5d0c3533a19f48e5e7e73806a3e4b29cd4364130 and fixed in 6.18.7 with commit 55a67ba5ac4cebfd54cc8305d4d57a0f1dfe6a85 Issue introduced in 5.11 with commit 5d0c3533a19f48e5e7e73806a3e4b29cd4364130 and fixed in 6.19-rc6 with commit 3f747004bbd641131d9396d87b5d2d3d1e182728 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-23026 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/dma/qcom/gpi.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/6bf4ef078fd11910988889a6c0b3698d2e0c89af https://git.kernel.org/stable/c/01b1d781394fc9b83015e3a3cd46b17bda842bd8 https://git.kernel.org/stable/c/55a67ba5ac4cebfd54cc8305d4d57a0f1dfe6a85 https://git.kernel.org/stable/c/3f747004bbd641131d9396d87b5d2d3d1e182728