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 86606350A35 for ; Fri, 24 Jul 2026 15:28:20 +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=1784906901; cv=none; b=oKM+d+PluMn6EuWFLvyVUq2fhQ43OeB19wqFwOeytGuGt7/lFKjC7kDMhJEJEe7mEET2LlsOmbmncdTWbay8DG9kCnmJDHjuSFBYVG7WIcI3wmEYpnlQMCR+LRgNansjpq+uWVEC+i57KmIccPSZjAi5DwM0bEsB++fk+7H6jWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784906901; c=relaxed/simple; bh=VZiLIGedSAZXxrvamYDTPPtaxbObJVrpqO/8kjK8FGo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DlG6V/stAF0QH6F3RKBVucphNxs1YJdtwPDeFv2J/ehrg/UX+pA+KIEQi+YtmpMew9gy+Kwix9HXTzeSarXDdkB432wn5Sm+hojnLny85SwtqQFP7RPD4yyYZJZSos41wSIQGuiLZq4b25IDXZIqJr5zISBEmvowSVh0vhjyp+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EESpPYXX; 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="EESpPYXX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8CC81F000E9; Fri, 24 Jul 2026 15:28:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784906900; bh=rVCHtKjWLWL8rh4g/8EuuoItsGcEKjYXdWhSCBnUmwU=; h=From:To:Cc:Subject:Date:Reply-To; b=EESpPYXX73kGS0BJaCM9e0s45yrfKIHyzaNjY7xv0SvUx3q8VPh5tUO/VTLxOEegc LEojH2hWnkV8lDnQ8eTI26FuSxa6lhyfyjQDJfEQRGXP6qrhcITVag3OlnlJMwOn9Q 4VwCoxCxvxW0+QIZ/sw0I3JOrWywW0QDnh37x43k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64241: gpio: rockchip: teardown bugs and resource leaks Date: Fri, 24 Jul 2026 17:27:48 +0200 Message-ID: <2026072441-CVE-2026-64241-e258@gregkh> X-Mailer: git-send-email 2.55.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=3300; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jpBp13UN8Ca3oaAJu8Mr+TsVyn1GOMa3VQHNdSJlFh8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnJLbld8/2/vM6xMWY3rlr/fqMK7+Z3PIrHPDVK7q/YV lJ9/PKXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIvxrDPO1N9fNLb7w+VlBR YerEXvvBfH7jMYZ5itsrXA/Oaf/H3cJhd9NJ8MCeel13AA== 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: gpio: rockchip: teardown bugs and resource leaks Address several teardown issues and resource leaks in the driver's remove path and error handling: 1. Debounce clock reference leak: The debounce clock (bank->db_clk) is obtained using of_clk_get() which increments the clock's reference count, but clk_put() is never called. Register a devm action to cleanly release it on unbind. Note that of_clk_get(..., 1) remains necessary over devm_clk_get() because the DT binding does not define clock-names, precluding name-based lookup. 2. Unregistered chained IRQ handler: The chained IRQ handler is not disconnected in remove(). If a stray interrupt fires after the driver is removed, the kernel attempts to execute a stale handler, leading to a panic. Fix this by clearing the handler in remove(). 3. IRQ domain leak: The linear IRQ domain and its generic chips are allocated manually during probe but never removed. Remove the IRQ domain during driver teardown to free the associated generic chips and mappings. [Bartosz: don't emit an error message on devres allocation failure] The Linux kernel CVE team has assigned CVE-2026-64241 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 6.12.96 with commit cdc603ce3118232712ba443dd8b414d8f25ca467 Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 6.18.35 with commit 7f945f7f10f442270518dfd768d230227c495fcf Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 7.0.12 with commit 6be81e77e1748665d7ddab9128ff1d35eb75b87d Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 7.1 with commit 9500077678230e36d22bf16d2b9539c13e59a801 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-64241 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/gpio/gpio-rockchip.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/cdc603ce3118232712ba443dd8b414d8f25ca467 https://git.kernel.org/stable/c/7f945f7f10f442270518dfd768d230227c495fcf https://git.kernel.org/stable/c/6be81e77e1748665d7ddab9128ff1d35eb75b87d https://git.kernel.org/stable/c/9500077678230e36d22bf16d2b9539c13e59a801