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 E8F1110A1F for ; Wed, 26 Feb 2025 02:27:24 +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=1740536845; cv=none; b=ejLn9fnaMNzkbY7Vyb00QT3gCSTEsubcyDqCGx+Y/4Ltbg/cw7BxSRtPgNDo30CVlaS4HQgJUGTaxUc1okDqK9JMYomL8vaHA05BlD767V2CY07AAQ0oqCufQ0K8l7ld+ZYvTFu9EV8tCvSMcz6L1ZKMkdeTBCL+GArLj5j7fZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536845; c=relaxed/simple; bh=0zOKTgODrgPchTaPyjSYUZDF2lfTMy9HVE6yKd6wGw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P/Sn49dIdIthP4xbABzdyPvcFXLennrTnl8NWJN3Qx5G+bvCx7unWspEgHU5ueKGaK0UVeSADqdV6X7NaCEYgsoMR/IGy3ro87Zxxuk4Z8Uz+gpHKQFjkYnaRvJt00ps2XTslrIAgHBKBduiyEY6mTE0pPTUJkW3rTT4gi7dQTs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HJRlz7qR; 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="HJRlz7qR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBA16C4CEDD; Wed, 26 Feb 2025 02:27:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536844; bh=0zOKTgODrgPchTaPyjSYUZDF2lfTMy9HVE6yKd6wGw0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HJRlz7qRezqVLVDIdaKs3QxTg+o8GrSju9bLK/rnbaLNq/jx3kQUyXw+k7tBbJQis JXDqlx138EoWucdjV4h64P+vWeFhcXoCGtYZhxCgr8UVMRDcJi8kBIc2wT3pIDZPon Dn7ia2qvD83Db2s08B2RFW1kDoXH7iOA3/FBuUZM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49684: iio: adc: aspeed: Fix refcount leak in aspeed_adc_set_trim_data Date: Wed, 26 Feb 2025 03:24:07 +0100 Message-ID: <2025022626-CVE-2022-49684-9c43@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=1944; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0zOKTgODrgPchTaPyjSYUZDF2lfTMy9HVE6yKd6wGw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh69Wf32ud96bWvjnZKJbVGXZ1/+tP6VrI5jjuJtM 7GPBkvOdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOoQY5mcuXXn4clPdxiq+ H/8mZx68sZ2HPZthDsfMT9O0uNWXdq298tB37/LolBDDFQA= 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: iio: adc: aspeed: Fix refcount leak in aspeed_adc_set_trim_data of_find_node_by_name() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49684 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit d0a4c17b40736b368f1f26602ad162e24b4108e7 and fixed in 5.18.8 with commit 9664491db50a84be92696c8fad2c3b49a7a5f36f Issue introduced in 5.16 with commit d0a4c17b40736b368f1f26602ad162e24b4108e7 and fixed in 5.19 with commit 8a2b6b5687984a010ed094b4f436a2f091987758 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-49684 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/iio/adc/aspeed_adc.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/9664491db50a84be92696c8fad2c3b49a7a5f36f https://git.kernel.org/stable/c/8a2b6b5687984a010ed094b4f436a2f091987758