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 A398F28F958 for ; Wed, 18 Jun 2025 11:12:11 +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=1750245131; cv=none; b=j0+M3gfPE919namLyGcHQC9fl3LjxyacJ7k6oVd6LxdoHG+B0If8WGz+wXDy+XfjMaSzzNSLXrN+8h9YGmMEXQKksykYdXlUsKiaw198EIpYWFgNoHb6HpScRV2IsSiUXX2g+YbBLF9TyVH0jGdRS92HRM7VmwL7UsPJD8A3XAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245131; c=relaxed/simple; bh=GklHpyaTWsfxHma32K5AXwgTmEWlC3ZNQ0CkS0xuXD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gvy62b369dvc0dJrPAOxqmPBjV7VYMKDow/fWy7J6yFEa5o7oE3zPJlBhxfR2Qay+YSJnPsZGhn0dK1qwUiYOrZLeNBLDjjHAveZpdian+gBWv6CxjOUQsMgOc8vXofLJgrx8yKGSnoi7kVuLocrCpkDNI/Ucxr7DsVLF3pcJwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1O0rIt7Z; 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="1O0rIt7Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12470C4CEF1; Wed, 18 Jun 2025 11:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245131; bh=GklHpyaTWsfxHma32K5AXwgTmEWlC3ZNQ0CkS0xuXD8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1O0rIt7ZvHvuov/rWxJYWcbr3VCJ+PdiK4vf8z6LuqQJgP2FPSCMtHX2QTEk6uQqj Czv6H2o+RsVJSMMmlaIbZJnqrN3jFydvlkVOWidpRNYdYIYLzqa0Q4F18+Zat9yZ8y q6br4jeUcTEHy/H4Kt4mLCwMcMuHpzJH2pUF1T2Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50108: mfd: max77620: Fix refcount leak in max77620_initialise_fps Date: Wed, 18 Jun 2025 13:02:53 +0200 Message-ID: <2025061806-CVE-2022-50108-088c@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=2856; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=81FpcLnMoi/Wawdranz87rnnUg4Iz8gk7Fh5ZrM9XqA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc4ocK2sYTT8+XLnxfcOTPcverWxQjHQ6Urkg6kVFk IHUo8XpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR7xEMC649FF908/S8KL8b /ety/K4bf1adZs0wP4znbZPk4+On9y7oVVrHrN1d+u0jKwA= 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: mfd: max77620: Fix refcount leak in max77620_initialise_fps of_get_child_by_name() 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-50108 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 5.4.211 with commit b948ff8a9e9ad46d4dff9127777caa14c8c2b53c Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 5.10.137 with commit afdbadbf18c19779d7bc5df70d872924f9bbd76b Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 5.15.61 with commit facd31bbc799f4d0cd25d9d688af7ca41e7f38ee Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 5.18.18 with commit 50d5fe8cb94c319cb4316f4d824570c075565354 Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 5.19.2 with commit a29c40814039535b950149311986a5f348b5db14 Issue introduced in 4.7 with commit 327156c593600e0f08575621c2a56f311d482e7a and fixed in 6.0 with commit 1520669c8255bd637c6b248b2be910e2688d38dd 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-50108 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/mfd/max77620.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/b948ff8a9e9ad46d4dff9127777caa14c8c2b53c https://git.kernel.org/stable/c/afdbadbf18c19779d7bc5df70d872924f9bbd76b https://git.kernel.org/stable/c/facd31bbc799f4d0cd25d9d688af7ca41e7f38ee https://git.kernel.org/stable/c/50d5fe8cb94c319cb4316f4d824570c075565354 https://git.kernel.org/stable/c/a29c40814039535b950149311986a5f348b5db14 https://git.kernel.org/stable/c/1520669c8255bd637c6b248b2be910e2688d38dd