From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 07AED3D9DB7 for ; Wed, 27 May 2026 12:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884456; cv=none; b=Ff9Ut7u+uBrQ0vK0eTv5UBHlhsfEHIvaUxA8Y4PZQKetgQ+K+cRThoKO8BaT2cdszwpTb3e7dSMTxKoJqzo3qyBNpGJ/14oSIZ6jmV0xyn+WfvpPXwRdWmlLO5myy7LCtD7FcmXFWH5kpFH8KcVoey8OO5zIgb/Rnr7dL7NxL6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884456; c=relaxed/simple; bh=CQ0Dgo5HkwoKmBIarL8173Ey65P4jJP9ixoN2X1aXO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ctkt0W0TdQ1WK14C5UUJj47OHkESV0jqInhvHjRcQImsjH5DJHyXfG7Di9U/0E7ld6J2eGiZqH3DmWh4R8CfJhfdPAijjR2lQ18TQ8cdxqEvErw/7EZ0W0hAvYF2yVlZ2ZW5qkc1AM9omqaPAvwR5T41FsBGbs5efj1OAfaqWkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vsTcUQcG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vsTcUQcG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19BAF1F000E9; Wed, 27 May 2026 12:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884454; bh=I9nsG7amQ6XbO6xzCeMgTXgbHCfzk2RrGFNIpLO1ORs=; h=From:To:Cc:Subject:Date:Reply-To; b=vsTcUQcG4CuRl5Ij/MpSSBmT8K3qkH4uRRhCKD9qdNGLszadcJ8h0VnKpGl/Q0u/l VApFq2hr6uKF8cZb4zxgBwl5HTU+YRaD4pevDlJkTgsspDHJdPpvi24RlEsrWSwKqd c1zi5ew2eu234s44McSD7MefvQ4dDPo9bBdXujNM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45868: pinctrl: single: fix refcount leak in pcs_add_gpio_func() Date: Wed, 27 May 2026 14:18:30 +0200 Message-ID: <2026052712-CVE-2026-45868-26cc@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=3592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qhqUGgmVWLfXnFoOouoqjPJt6r7/GEFGCLEuN90CZxI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD1mO7tzwY+2jWzUCV79dPKu57xbL0qnStzuvzy0UK X1RIZNb0RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMT7KMFeIy2Nx5nSGuzLp Z1L32TFdeGxuHcCwYOeLrHPnUufbpStP8O0x2XjKNs7pIgA= 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: pinctrl: single: fix refcount leak in pcs_add_gpio_func() of_parse_phandle_with_args() returns a device_node pointer with refcount incremented in gpiospec.np. The loop iterates through all phandles but never releases the reference, causing a refcount leak on each iteration. Add of_node_put() calls to release the reference after extracting the needed arguments and on the error path when devm_kzalloc() fails. This bug was detected by our static analysis tool and verified by my code review. The Linux kernel CVE team has assigned CVE-2026-45868 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 5.10.252 with commit 191bfd5710d6a7f48ba4315d8d3e908dcc15243c Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 5.15.202 with commit 3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 6.1.165 with commit 456a60d06c09a92680dc35fabca68024badcc28e Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 6.6.128 with commit 99cc7352156c65201c675f750e0e77c4c73d93f5 Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 6.12.75 with commit 7814b1431848854b56717086e2b61bea3c59753d Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 6.18.14 with commit e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 6.19.4 with commit 5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 Issue introduced in 3.10 with commit a1a277eb76b3507df7c41774048a644aa4dfd096 and fixed in 7.0 with commit 353353309b0f7afa407df29e455f9d15b5acc296 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-45868 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/pinctrl/pinctrl-single.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/191bfd5710d6a7f48ba4315d8d3e908dcc15243c https://git.kernel.org/stable/c/3e3b28bb0b6ddc521a4fdd1c1ba0d35017a0796b https://git.kernel.org/stable/c/456a60d06c09a92680dc35fabca68024badcc28e https://git.kernel.org/stable/c/99cc7352156c65201c675f750e0e77c4c73d93f5 https://git.kernel.org/stable/c/7814b1431848854b56717086e2b61bea3c59753d https://git.kernel.org/stable/c/e2e367e56bacb93ce5ac73f0b3297d5c83d38dd4 https://git.kernel.org/stable/c/5b9e84d27e310f22c4ba45fedbc4f5baf43dd823 https://git.kernel.org/stable/c/353353309b0f7afa407df29e455f9d15b5acc296