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 0015B21C16D for ; Wed, 26 Feb 2025 02:27:54 +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=1740536875; cv=none; b=FXAIFKkvtr5OJpCAsLewUIK+6fE+lJhUTqKqz76sRl7cZuvkaaXbDK5Xm9LT736RzfE0zZmOIlE9c7CJZgZmKLps039WKKagjmdj4FAwayuhSYT61aA58k80vkn1mBVIc/wGaPUG+nb/7papZabPAnCbTJiMu1qz4rxaa+OLlOI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536875; c=relaxed/simple; bh=qRRKa0o1I8/Fuy7j9pjp/CbjCw7QDlXuc5BUWMnItbY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MqPWwOfjeaFqvoVkpMJsHFU63oevvb1pQLRMHvOqKzkhITl4fbVAc9/odgYxCV5n73cjs6jSrkF89IxdGuB7G5kCOLTOzBV1g2kUfmcldWu/Kso7ixzSOJxbap/AicwQVyVzaN90X3TKSK6RKmUss75ezb8kJZbkkU4SL/dScvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MDtTNvyg; 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="MDtTNvyg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6B67C4CEDD; Wed, 26 Feb 2025 02:27:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536874; bh=qRRKa0o1I8/Fuy7j9pjp/CbjCw7QDlXuc5BUWMnItbY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MDtTNvygo9x7FTHc2q4ixZHJ8gI+cNKLkU7tn7vXPqXEA0oPDNFALuL/lvndLoLah yKZ/fN2/NnN22IQv8DQvrlEkgyPWRTOTS42+AxJ/hh+NyhSD730bIF3ubn5UxPBzCk niFtozy7HzwA/mVDl7eEb/JMXyemjQoDPRZ+ePAs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49717: irqchip/apple-aic: Fix refcount leak in build_fiq_affinity Date: Wed, 26 Feb 2025 03:24:40 +0100 Message-ID: <2025022632-CVE-2022-49717-acc7@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=1957; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qRRKa0o1I8/Fuy7j9pjp/CbjCw7QDlXuc5BUWMnItbY=; b=kA0DAAIRMUfUDdst+ykByyZiAGe+euigQOZXlK41F+YID38Yznr/nmVmvNWwcMDXfKSpL+96P YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAme+eugACgkQMUfUDdst+ymaSACgpBQx hg8ymvmr9rYMdKS9umx/eTgAnAw9Ea7YUZpyNS136YZakPY+GmCZ 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/apple-aic: Fix refcount leak in build_fiq_affinity of_find_node_by_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49717 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit a5e8801202b318622ea526aa5625e5f7eceb4d26 and fixed in 5.18.6 with commit 2dc14cebe5dc053434b507bb24e6821cb795050f Issue introduced in 5.18 with commit a5e8801202b318622ea526aa5625e5f7eceb4d26 and fixed in 5.19 with commit b1ac803f47cb1615468f35cf1ccb553c52087301 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-49717 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-apple-aic.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/2dc14cebe5dc053434b507bb24e6821cb795050f https://git.kernel.org/stable/c/b1ac803f47cb1615468f35cf1ccb553c52087301