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 A28F31A5B8C for ; Wed, 26 Feb 2025 01:58:50 +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=1740535130; cv=none; b=QYG/cog0i0al+ReKfuxu8wu945H6Pt71LXu6SiZ7rvMPIVd8ylnUwlCtU7UB65dSOcv3RyveyxJCzYefRkZrNCkCrCFBeSLEv1Vwa4Q1/Vl9kWvc16l5f96cj11Aw/mnJCpdDkTYLsHcWR49+4MYMXOXF0xpR1K4Yg5FlFactuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535130; c=relaxed/simple; bh=QI95bIwbwJa92iZ+qS+XPZTOTYUdHZUiu0Fkq6CbE04=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jQir0XALoNv5MINjZ9vlJno6RqrQYqJk/KefUuih2WHlptCsvAVE8HPx88K+vITAYStscTD8heZZAxXxyEvoIFZgjWTsaVvI5SshOBkQU9mksY2QtpDYUOCZvj1rFLla3h8iXIDSQg0RnXo8cSzZ/Tr5Z8yHfL0L0n+HjdcKiDM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BJyE5QW/; 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="BJyE5QW/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77294C4CEDD; Wed, 26 Feb 2025 01:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535130; bh=QI95bIwbwJa92iZ+qS+XPZTOTYUdHZUiu0Fkq6CbE04=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BJyE5QW/XlY5m4jPVR7+zq8SkrBJklYVWNRNjz32kgR7MZ8M4KbiR//Qbsm7DO7Hs n15cyNWI/AoxN+oOs09+R3KwpLoAiWSSkw9ggZ1busWVCP+RB1krlCstmeRU2IP7h7 j0pSXsKMdFcpInqxT3OsypjxG+hDq+/7OrZ5cyRw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49150: rtc: gamecube: Fix refcount leak in gamecube_rtc_read_offset_from_sram Date: Wed, 26 Feb 2025 02:55:55 +0100 Message-ID: <2025022609-CVE-2022-49150-57a2@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=1969; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QI95bIwbwJa92iZ+qS+XPZTOTYUdHZUiu0Fkq6CbE04=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Shw1b09/UsOa8zL20RXnmf7zaz+w2GS5L/kq98vT8 IDPLde3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRq3YM84w2+zKGHau23+J5 9I/90Uqp+h0VLxkWrJVQS1IJOPbj2ISZMsa/WG35jY+8AAA= 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: rtc: gamecube: Fix refcount leak in gamecube_rtc_read_offset_from_sram The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. The Linux kernel CVE team has assigned CVE-2022-49150 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 86559400b3ef9de93ba50523cffe767c35cd531a and fixed in 5.17.2 with commit de66e4f28dfd11f954966c447b4430529ed040a2 Issue introduced in 5.17 with commit 86559400b3ef9de93ba50523cffe767c35cd531a and fixed in 5.18 with commit 4b2dc39ca024990abe36ad5d145c4fe0c06afd34 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-49150 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/rtc/rtc-gamecube.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/de66e4f28dfd11f954966c447b4430529ed040a2 https://git.kernel.org/stable/c/4b2dc39ca024990abe36ad5d145c4fe0c06afd34