From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796048306; b=J4cEmsBcJN1jFI6u/88MWMVuNtld/BHbCWX2KZLdm0l1WSuz8u27htIiliEi7sVMAcXY YIgv21s5pY+cia3Yob4majtdVGGKFJHpf5P31s4zEKBcOeh3XEjDydMEZSLAYYjpDwUw0 TRHH7/+jGvjqiGfkSyRRIVoeOUkQSPJDs5H1qeqxGrNf8hueqCuL3L+82fDZG8pJsE9ba 1x+Y2gXTiIYe4hSV9SduVdeiWibnLKlmauQkD6XrfIbByopaJIy9GZ3J+1zgmaPRjtYUN Rw1Xl45yFMuQWqyg1Paq+H8Uix4yLYba+ZwSl5f5P+1zp8xl/k3NWh7tYbVGcyDcVKQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796048306; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=+FIg85L4E0u7NKjwHP3ebQC9bHG03ioYTORBw+Oiocg=; b=ZVeBOXJRxkbPj5+MoFt0Tb3P0Yx8ri58qzihVXSweQ+fLnGCsqTXY8VmfAqHmA1x7p6i L4hfECZZRNFIrxO3gbFzErK6+t7EkM8rjI/O5AifQPNh6JnK/ia7rHSIuRwDwnQWwUGid /IlRGZC30VtRqd3HjaBBk4lCf1tLF5xdW+hTNDBE9Ye77p2VP4jjQaZpCHY8OFE0gVGP6 PTEK7oydPYzdaTgISiUS8hLrcRWNlhe2JDoh2xNvCG8f3WR4QpOGw3oqIAL+MTzUmdCWs mZaWL4ToE4FewnHnfTGyCPG1YFhZbZqYJEEaFm7IieFFD7wihmKwM+pSyBluMBcD97A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=seF0Nhuv; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20DED606A31C for ; Mon, 30 Nov 2026 14:18:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=seF0Nhuv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BC411F00898; Mon, 30 Nov 2026 14:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796048305; bh=+FIg85L4E0u7NKjwHP3ebQC9bHG03ioYTORBw+Oiocg=; h=From:To:Cc:Subject:Date:Reply-To; b=seF0NhuviEDMJUs7EPfJRViEeUUR9OjcYfpqOBHRT880bP4VbipH2A0d6lRBIKpvf 5ZhM+uo0pvjNutOm1X1RfomIpTCOGI+xSWBSG1GSQq8BnTzaJmBDVELaqIoWgdHQr+ utLL4UXegQaHwwnv1PnzGIiiOK+WujXQk0yc1fuY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139561: pinctrl: pinctrl-generic-mux: Fix provider resource leak on re-parse Date: Mon, 30 Nov 2026 14:39:30 +0100 Message-ID: <2026113058-CVE-2026-139561-e121@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3191; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VyK/S+GddUNBoTKVjlV96gOUhnq5tjDhK4Ixq9/ge2U=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm81VxP+DlrFyxIf1ifWi568u+TSSm9ufOmmvP+Xp9nY fPyivHPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIfjLDbDab4CeTgg8+Xb9Y R3WXvqnwqU4RFoYF11W7JzxMclaQ7ypY53cyVeGti1seAA== 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: pinctrl-generic-mux: Fix provider resource leak on re-parse The pinctrl core re-parses a consumer's pinctrl on every probe attempt (pinctrl_bind_pins() runs before the driver's probe(), and again on each deferred-probe retry or re-bind), so .dt_node_to_map() must be side-effect free and safe to call repeatedly. mux_pinmux_dt_node_to_map() instead allocated provider-side resources on every call - the mux_pin_function, the group name table and a mux_state reference, plus a group name and a pinctrl_generic_add_group() registration via pinctrl_generic_to_map(). All of these are allocated with devm_*() against the provider device, so they live for the provider's lifetime and are only released when the provider itself is unbound. The .dt_free_map() path never touches them; it frees the per-consumer pinctrl_map only. Every re-parse therefore adds another set of provider-side allocations that are never reclaimed, so a consumer that repeatedly defers probe or is re-bound leaks memory and mux_state references on the provider without bound. The groups and functions of a board-level mux are static and fully described by the device tree, so build them once at probe time in the new mux_pinctrl_probe_dt(). mux_pinmux_dt_node_to_map() then only looks up the already registered group and builds the per-consumer mux map, which the core frees via .dt_free_map. As the mux has no pin electrical configuration, no config map is emitted. The Linux kernel CVE team has assigned CVE-2026-139561 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit 34acc5a8adfb76f2de63c8b8317397fb72b0aec8 and fixed in 7.3.6 with commit 8f8c5606c125cba00e491dad0da071e9b59feba5 Issue introduced in 7.2 with commit 34acc5a8adfb76f2de63c8b8317397fb72b0aec8 and fixed in 7.4-rc1 with commit 707855c21198c6a0b73efa053ac4fe733cbe1985 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-139561 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-generic-mux.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/8f8c5606c125cba00e491dad0da071e9b59feba5 https://git.kernel.org/stable/c/707855c21198c6a0b73efa053ac4fe733cbe1985