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 71D5B2FF65F for ; Thu, 25 Jun 2026 08:47:57 +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=1782377278; cv=none; b=V/Co07MEPmpyiIF+raFVcUZfgzVKn+r10Vx7YWbFkg8W04+k/IGybek99NkyEucGu5FIIyqc8q15nTCocz1k8ygr79imnZg+YMyM3DZAeBO0ZWKA807NAA/rPVrXwyIW5WlTS5waWyowT7lWigrxHOe6UQD/2y1XQM07JMG14iM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377278; c=relaxed/simple; bh=MavZuLTFDdAxemcpa5l3jVcwMYb+QP58BWBJtQFIUuk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MrKBpVu8h7zTj2fmrPKwev1EuwjpNv6e5oXBBLtv5ElpYgZQ1kyWDr01MhFuT5rh3fWl/QA2u0yvgNIor+BT3Q+++KAWQSjbe9QIRgvb0ND3Cmndvl9cQLOcg/33fMfc9VRui1cf7CK6m9tnuw8UdCKLcX62grZ6GHXc5Pvzqh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2td0tX8/; 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="2td0tX8/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F58F1F000E9; Thu, 25 Jun 2026 08:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377277; bh=49xPeysH31L80fs6f0zUOSUXsA+TuJY1oZGCz1KMg94=; h=From:To:Cc:Subject:Date:Reply-To; b=2td0tX8/YTfWryFEh13VoY2FAPQCPfGbSoAhxjKIIkUEfNq4zQKakdSU1Nnv4bL+a zm0LumwrichbtszT/5voHkign/uu9ich+EYvlqqeZKb8jkMDmBVkTjxWOSJt26VWVO eEcZ0ecmK3udYzT7na7T0FwgAcnFg0KndZcistig= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53226: gpio: rockchip: fix generic IRQ chip leak on remove Date: Thu, 25 Jun 2026 09:41:14 +0100 Message-ID: <2026062507-CVE-2026-53226-e2fd@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=2760; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EcJA++znJNQEuQltFa2YUOgasfjKNwTlUx+gUFCOWtc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L9PzNA+3tjnz3/be+f2IytLfQptFuBfpMTt9jjZUn Dq3YHdxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE2Y5hwZQrJm83cT9vNjWc 79f73jM2OOv/U4b5xedLz62w8K756rd7QUhgyf/DrXPvAQA= 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: fix generic IRQ chip leak on remove The driver allocates domain generic chips using irq_alloc_domain_generic_chips() during probe. However, on driver remove/teardown, the generic chips are not automatically freed when the IRQ domain is removed because the domain flags do not include IRQ_DOMAIN_FLAG_DESTROY_GC. This causes both the domain generic chips structure and the associated generic chips to be leaked. Additionally, the generic chips remain on the global gc_list and may later be visited by generic IRQ chip suspend, resume, or shutdown callbacks after the GPIO bank has been removed, potentially resulting in a use-after-free and kernel crash. Fix the resource leak by explicitly calling irq_domain_remove_generic_chips() before removing the IRQ domain in rockchip_gpio_remove(). The Linux kernel CVE team has assigned CVE-2026-53226 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 6.18.36 with commit bace7b99bfa555fe833aee8827b8004c43666d02 Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 7.0.13 with commit 1f34ea5f6114011092d9a5c8b901ad6741144a1d Issue introduced in 5.15 with commit 936ee2675eee1faca0dcdfa79165c7990422e0fc and fixed in 7.1 with commit 1c1e0fc88d6ef65bf15d517853251f75ab9d18c3 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-53226 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/bace7b99bfa555fe833aee8827b8004c43666d02 https://git.kernel.org/stable/c/1f34ea5f6114011092d9a5c8b901ad6741144a1d https://git.kernel.org/stable/c/1c1e0fc88d6ef65bf15d517853251f75ab9d18c3