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 3275D288520 for ; Wed, 18 Jun 2025 11:05:28 +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=1750244729; cv=none; b=DI9jPtC1H2zpcfMU8SEaU/QD/uKeCwhiFx6HqSzhAiBDga1160q5XhCpDYLB8AIf14VlJKljMHIIFNCdUAHHqDotjJ0gyij6Iujw1+v/eyGn/3r5IsmTIaBxesEvwTrQHC3awfGQetWk8v8HGXO4i6nKG+++1R9cVBkj9A9jsPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244729; c=relaxed/simple; bh=+Z7hbVjX3B4VbbbuvIv6i3HfESMR++oUEOKdURRWs7M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BXXco3PHi+1FcFSlylrzOht/RmyFQ7IQnuYsANpM6MYNF/uqxo3ynjZ+TNyzlDDjQtiG5vMJRO6q3JNssUePAOl8hEOtmF5kBBP1JTbfgtiFgsflEHS12nwc7v7M3oRYHM0oam7Uq37QRcdh4QRDTgArSBxs01vVZsnv16sWLgc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pNebVEkg; 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="pNebVEkg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50D51C4CEE7; Wed, 18 Jun 2025 11:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244728; bh=+Z7hbVjX3B4VbbbuvIv6i3HfESMR++oUEOKdURRWs7M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pNebVEkgeEIWSDqvI1YpmcQJFwGN8geTx2qBsK5PPGciQg4jdlWctkfzFo/ZlgU73 dXprKZbKnz8HnQ6pIwQpY4YPYOE/XsIlgFXy1mfkAeuy77nGERDNECFMBWZ/Zh8lVV uDtW2UycBcztonW064fTtDu/WvIFgoTiZ0iO9wkg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50017: mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start Date: Wed, 18 Jun 2025 13:01:22 +0200 Message-ID: <2025061834-CVE-2022-50017-56d1@gregkh> X-Mailer: git-send-email 2.49.0 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=2687; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tnqdiAwhX0QE6MmA6wI8WmhsNKAI5KeNPWBKnucVta8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc4Lm9Pdsvnnt3xers80tGrc9z//mPLLzqFFZ2Kvn0 QHp28tiOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAivE4M85O3XXmmEaGwkpVb Iq4tXfXe+w6xBIYFE1OYTVZqKfXHSsoUlboVNLNrrnIFAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start We should call of_node_put() for the reference 'uctl_node' returned by of_get_parent() which will increase the refcount. Otherwise, there will be a refcount leak bug. The Linux kernel CVE team has assigned CVE-2022-50017 to this issue. Affected and fixed versions =========================== Fixed in 4.9.326 with commit 9d1afa0169a84dcd5b79901d792edeb8403684ab Fixed in 4.14.291 with commit af87a469695dc2b2419b2fdff0bf41db5265b325 Fixed in 4.19.256 with commit c06166a484eece51916dd700a870e53356b7e1bc Fixed in 5.4.211 with commit 1b49707df679b5510ed06ace7378ddc2aec5c3fb Fixed in 5.10.138 with commit 1e39037e44d7fa3728686af146f9285ea197097d Fixed in 5.15.63 with commit 7822d994eb9579a1df4cdbc315db090a041e50f3 Fixed in 5.19.4 with commit a80016c40cc797c7f3e5a705b8e12ae447280335 Fixed in 6.0 with commit 7a9f743ceead60ed454c46fbc3085ee9a79cbebb 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-50017 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: arch/mips/cavium-octeon/octeon-platform.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/9d1afa0169a84dcd5b79901d792edeb8403684ab https://git.kernel.org/stable/c/af87a469695dc2b2419b2fdff0bf41db5265b325 https://git.kernel.org/stable/c/c06166a484eece51916dd700a870e53356b7e1bc https://git.kernel.org/stable/c/1b49707df679b5510ed06ace7378ddc2aec5c3fb https://git.kernel.org/stable/c/1e39037e44d7fa3728686af146f9285ea197097d https://git.kernel.org/stable/c/7822d994eb9579a1df4cdbc315db090a041e50f3 https://git.kernel.org/stable/c/a80016c40cc797c7f3e5a705b8e12ae447280335 https://git.kernel.org/stable/c/7a9f743ceead60ed454c46fbc3085ee9a79cbebb