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 3DED021B8EC 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=1740536844; cv=none; b=KABm5d3Lo4SDkNJ5tppIaNJPhsQerT9avokbffwff9McQFXHRoRa18Vh6TLHrHAX8O7xcL4SicSga5V/WVpsnomIAAubae8UzfQdp5hU7U4G9KkTuhSe1+8LSrKnYo914vuj8hd2U5y8+hCJoXUE+xGobOFCT0egMalTcxtqtCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536844; c=relaxed/simple; bh=1NtR2z+yuBl6Q1tgA3fsjif4npROIBINC24ncKHn8o4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lVHHbvSN330e+Aj1uVI+Pimq2nxqUD1Z6SZkXC8+545E3G33YuZ6zmQZXmljaLUzX5vO2/oxgXAJd/ACBJlWU/xEqyRqpQU2+0cpfYG/i2ffAWE0Cbt6nICPaW3iJuqb3pU0oV1yKlV4hLOxWebw2ASxwZQ8DfT9EGKCwxrUHb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lxYoxSYo; 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="lxYoxSYo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11B4DC4CEE6; 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=1NtR2z+yuBl6Q1tgA3fsjif4npROIBINC24ncKHn8o4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lxYoxSYoFHbiWu/5MVFeqSBn4BbqIoCbsYwAoaKCcoOYe9nZCvnFOc2Bjgqe3aKJG e0ML8wSJWBp4GfNK0G2IBJglExZOHJy7g2+gQ7EqHJuysIiDyBysRdRcnHnckdOtAY x7Oxgg1fGgL6rbLUiCwN/iGfsW4l8E1KGr6ZzEsg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49683: iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client Date: Wed, 26 Feb 2025 03:24:06 +0100 Message-ID: <2025022626-CVE-2022-49683-b7e3@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=2414; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1NtR2z+yuBl6Q1tgA3fsjif4npROIBINC24ncKHn8o4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh55We69bPJ694H/XfxSThMNdM03fN3H8yakPvZMc qd34IOsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIvwrDgqUL5x7dpnz+16/O 74cuJZl/ifhsFscwTzXSbvbsn0zMWhfiBILc7p7oO/OqHgA= 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: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client of_parse_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-49683 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit ef04070692a21633ec6a60f80c19b6af44b3cf47 and fixed in 5.10.127 with commit 501652a2ad5450b4908e1f204ce75b2414c305b7 Issue introduced in 5.8 with commit ef04070692a21633ec6a60f80c19b6af44b3cf47 and fixed in 5.15.51 with commit ab7bf025cee89db73c649216ddd2bc589c3d3862 Issue introduced in 5.8 with commit ef04070692a21633ec6a60f80c19b6af44b3cf47 and fixed in 5.18.8 with commit 5eaa84e1605035a90a64d25b6cba79e89d188175 Issue introduced in 5.8 with commit ef04070692a21633ec6a60f80c19b6af44b3cf47 and fixed in 5.19 with commit ada7b0c0dedafd7d059115adf49e48acba3153a8 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-49683 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/adi-axi-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/501652a2ad5450b4908e1f204ce75b2414c305b7 https://git.kernel.org/stable/c/ab7bf025cee89db73c649216ddd2bc589c3d3862 https://git.kernel.org/stable/c/5eaa84e1605035a90a64d25b6cba79e89d188175 https://git.kernel.org/stable/c/ada7b0c0dedafd7d059115adf49e48acba3153a8