From mboxrd@z Thu Jan 1 00:00:00 1970 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 2C8702153E8 for ; Wed, 26 Feb 2025 02:13:19 +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=1740535999; cv=none; b=ng0CWlrFpmpoo9TTPMwjfcYllCzVYBE2d2b3w7Om0rQN5ckQOpWc/zPsNCHfl1Oqo8IoPbCqlALihdRMbzmuCoD7EdLd9BwLD9QVS/34SN10XM4PoDVQN+LaxZHOuZsre1Vm2386Us8sGs+B/qQSVvuWFTyWL9TnAsigXV6084I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535999; c=relaxed/simple; bh=jX6oaows4fb+zDvynGu+ZHAwWprhIZFz+s/K4MJsXzM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JWU4RMXBfSwEiKTwUyL5UVut5Nqff2h3hsjr25BECwq9D7lug0aDt/eYQTfXKw8JSy5R0/mpPplFTeBgQOh6A8y5I3v/LCkeRrzYXBiOk669/NpSfWkFOEnt5rK71EwZZtfjIaCiyXdGXga0yH36sIGHY0HwHlCdIdUDbVXYyk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PVisBvdP; 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="PVisBvdP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00961C4CEDD; Wed, 26 Feb 2025 02:13:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535999; bh=jX6oaows4fb+zDvynGu+ZHAwWprhIZFz+s/K4MJsXzM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PVisBvdPf5wMHgPkONGrznJOpCoDIsyY2tYLjQtUeX8w2fUYsbgCONJUPuY7sK7/E 9sLWQOIeu//7bguSi02CucRo1Q43f9OHIy46ZK31b5VqJSF03QBjCjJfyM6bX2mXpi gDcv0v0UEG3OwDknYg9Y7xr7n/uZRHKfqJ7X1y1g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49354: ata: pata_octeon_cf: Fix refcount leak in octeon_cf_probe Date: Wed, 26 Feb 2025 03:10:28 +0100 Message-ID: <2025022643-CVE-2022-49354-9be3@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=3522; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jX6oaows4fb+zDvynGu+ZHAwWprhIZFz+s/K4MJsXzM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yp8vK9BdsLfN5PjmuoMXv+pZn9xT68gpNPH9mjkh/ xszTuxb1RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATeVfFMM98B4cJv4jL7LKy LJbn8psNteybGRnmJ3xsDd+Vmqr+osPL6nDis81TqoxFAA== 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: ata: pata_octeon_cf: Fix refcount leak in octeon_cf_probe of_find_device_by_node() takes reference, we should use put_device() to release it when not need anymore. Add missing put_device() to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-49354 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 4.9.318 with commit 7bd85c5ba1687daf54e3b6907673c3604b1e75cf Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 4.14.283 with commit a4d3e5f1d7d4f8b5e3834fec0f057a762c55806b Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 4.19.247 with commit 8d8ad067b90f231b8fdb14acee673ca4012f6045 Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.4.198 with commit d5a1e7f33c88780b279835d63665d7e38ccb671f Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.10.122 with commit 19cb3ece14547cb1ca2021798aaf49a3f82643d1 Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.15.47 with commit 888312dc297a8a103f6371ef668c7e04f57a7679 Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.17.15 with commit c9782e1b21bee4b783a64b2a91e7e71406c21a21 Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.18.4 with commit fb2cb409b504bb3a69e65a17f3120328c8e50219 Issue introduced in 3.8 with commit 43f01da0f2794b464ade2ffe1f780c69d7ce7b75 and fixed in 5.19 with commit 10d6bdf532902be1d8aa5900b3c03c5671612aa2 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-49354 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/ata/pata_octeon_cf.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/7bd85c5ba1687daf54e3b6907673c3604b1e75cf https://git.kernel.org/stable/c/a4d3e5f1d7d4f8b5e3834fec0f057a762c55806b https://git.kernel.org/stable/c/8d8ad067b90f231b8fdb14acee673ca4012f6045 https://git.kernel.org/stable/c/d5a1e7f33c88780b279835d63665d7e38ccb671f https://git.kernel.org/stable/c/19cb3ece14547cb1ca2021798aaf49a3f82643d1 https://git.kernel.org/stable/c/888312dc297a8a103f6371ef668c7e04f57a7679 https://git.kernel.org/stable/c/c9782e1b21bee4b783a64b2a91e7e71406c21a21 https://git.kernel.org/stable/c/fb2cb409b504bb3a69e65a17f3120328c8e50219 https://git.kernel.org/stable/c/10d6bdf532902be1d8aa5900b3c03c5671612aa2