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 E0C6F21C176 for ; Wed, 26 Feb 2025 02:27:48 +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=1740536869; cv=none; b=NEZ0WWAuRhnrL3kZ6thOK8PFfgCrf4Dgn5gPm93HYKioc4CkdvwmCjtu6yoy1cxOZiUSIt6loihp2r3t4x2xcJ56Q8nqbP2hQ0v6Sgh8AzlJgL6CF7iIZya0+cWEL7HgiFn/zJAE/iddn+m8iJQAhDyH+ofbR/Zb6SEbotOJJyY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536869; c=relaxed/simple; bh=S5sDaPnCzvluigs7p7PBnoSCvYd9vKB4/uCgpF4Wzuc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yl6DW4XP8PQEm9hviVsbPIP+67NunoweUaSH3DNazxvSW7wvHn1Ny2t7AP/RHw1+eRyocaqFLdQ8zgc7Gd9vjVpAQbc3ULxBumW367d8z0nHIR6pqpxVD9esj/hUuW4JnJNNfixaRIv6ZsLdj7J45XQtfLTNWkeQI2V+s7xoc7M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SBJP4k9U; 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="SBJP4k9U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B64C7C4CEDD; Wed, 26 Feb 2025 02:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536868; bh=S5sDaPnCzvluigs7p7PBnoSCvYd9vKB4/uCgpF4Wzuc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SBJP4k9UGbDs2fRjpJSf/t63k13oyaQk1hfPOe0l2EArtqtzCI7UWpFmwDkO93o7V qS+KL/3E2TPMWv4wEKn6xkRVwBgVuGKyyFvL041sqN8xi9ZqJElDKIzBmFubT6wE90 kXJKVTAYCAhDlI0d9NCFShTGVJsh6eARWBKYgxR8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49714: irqchip/realtek-rtl: Fix refcount leak in map_interrupts Date: Wed, 26 Feb 2025 03:24:37 +0100 Message-ID: <2025022631-CVE-2022-49714-b926@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2293; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S5sDaPnCzvluigs7p7PBnoSCvYd9vKB4/uCgpF4Wzuc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp4HfCre9fXcs41fRSevS3/RzdlZl1bRM0lB2Td3y YF99+wSOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisncZ5uelrz8m/nbHLvf/ /+/fiXGO5ozljWdYsGhi3gRWi11BB1de3MylLLj26tTQUAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: irqchip/realtek-rtl: Fix refcount leak in map_interrupts of_find_node_by_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. This function doesn't call of_node_put() in error path. Call of_node_put() directly after of_property_read_u32() to cover both normal path and error path. The Linux kernel CVE team has assigned CVE-2022-49714 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 9f3a0f34b84ad1b9a8f2bdae44b66f16685b2143 and fixed in 5.15.49 with commit e85b1b797de0e7a271b906291ce28245822820b8 Issue introduced in 5.12 with commit 9f3a0f34b84ad1b9a8f2bdae44b66f16685b2143 and fixed in 5.18.6 with commit f6d6223df0666fbc054e3a8c6ac14eb0af37c286 Issue introduced in 5.12 with commit 9f3a0f34b84ad1b9a8f2bdae44b66f16685b2143 and fixed in 5.19 with commit eff4780f83d0ae3e5b6c02ff5d999dc4c1c5c8ce 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-2022-49714 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/irqchip/irq-realtek-rtl.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/e85b1b797de0e7a271b906291ce28245822820b8 https://git.kernel.org/stable/c/f6d6223df0666fbc054e3a8c6ac14eb0af37c286 https://git.kernel.org/stable/c/eff4780f83d0ae3e5b6c02ff5d999dc4c1c5c8ce