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 6F0512949F4 for ; Wed, 18 Jun 2025 11:15:05 +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=1750245305; cv=none; b=rY1StQa0RXUvCNQXgt4uRSfZoE3EewVbAdm+UXbq+w7wJWOenww5FpKYXRyp+Lxo1uTkThaCZgak2aLNY+JD/VqVkQpKJ7bNhEgtxW7l8zrmvPYe5N6H/QToQuiSefTcqBKNg1w40Z4UDji5WDSGzMQMRsZcWVNB562eCnLDfXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245305; c=relaxed/simple; bh=dGdEbQtDL2IVbW3JSiXK/HdPXzipo35cLAaUtL7xNFw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YFyovYFQglQ2OCxXOlEGGvKvigXyZ6Hwmu/AmRYDO2JmfVIhEcWC9+Uu+nOzA9a+7uXQ0tX8tOZGTRv2HKcvjNeF0sFay3pAuo0fmqJXdc2bW2deyhSCyiUfgi4OgxkbkWMWzF2LI5QoKyty99N7roh0JNcatG1bmVsaB2kfukQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VV8+4+KZ; 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="VV8+4+KZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF124C4CEF0; Wed, 18 Jun 2025 11:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245305; bh=dGdEbQtDL2IVbW3JSiXK/HdPXzipo35cLAaUtL7xNFw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VV8+4+KZYEx++4GMYL4pfeLEKoqMRgU/ZgEhDN5gIggSjuC/MjwXrBSuGL5Kxkki0 z2ZdEKngqBGOMJdxyE8KXzAojdAn3Xmz1BFBVtYdRZGjkvdHVGDj67Rjck7cfKBjNo Ukhth0Q0Zu7SiFEMpeXZaHR2uG/XdNX+/MDaAqRg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50191: regulator: of: Fix refcount leak bug in of_get_regulation_constraints() Date: Wed, 18 Jun 2025 13:04:16 +0200 Message-ID: <2025061836-CVE-2022-50191-8c6c@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=3283; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RmDt7GDXD+xNvJeVZqsALATXqt2AyUzbK0LpqPfPb0Y=; b=kA0DAAIRMUfUDdst+ykByyZiAGhSnJDI4C+OJB+kdCjDzVsX4Q9N9RFGIiSdDkGu0O8qtwUtT ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmhSnJAACgkQMUfUDdst+yn0YgCdG0Fu R3dam52nB1wwlC4bkqJnFJgAoMAzqp2nDMOJFtRtLBFejotVP79P 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: regulator: of: Fix refcount leak bug in of_get_regulation_constraints() We should call the of_node_put() for the reference returned by of_get_child_by_name() which has increased the refcount. The Linux kernel CVE team has assigned CVE-2022-50191 to this issue. Affected and fixed versions =========================== Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 4.14.291 with commit a23098cc32860272dc6c3200ff20c34c65b7b694 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 4.19.256 with commit b9ca8585c766616563cf3c062c6878f61f83cf00 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 5.4.211 with commit 35f9e861d9b9434903a8ede37a3561f78985826d Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 5.10.137 with commit 332e555dca074c4eb2084898021c3676423814c3 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 5.15.61 with commit c9df8ff290097aabd5c9200f7f729b0813d37b19 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 5.18.18 with commit 11ecb4f8735b0230d54a82c18b21ea778b695d61 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 5.19.2 with commit fc7b19f547bc9e622060a0a9a39da2330aa21c53 Issue introduced in 3.19 with commit 40e20d68bb3fb1ce2704c886d597918988d3321d and fixed in 6.0 with commit 66efb665cd5ad69b27dca8571bf89fc6b9c628a4 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-50191 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/regulator/of_regulator.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/a23098cc32860272dc6c3200ff20c34c65b7b694 https://git.kernel.org/stable/c/b9ca8585c766616563cf3c062c6878f61f83cf00 https://git.kernel.org/stable/c/35f9e861d9b9434903a8ede37a3561f78985826d https://git.kernel.org/stable/c/332e555dca074c4eb2084898021c3676423814c3 https://git.kernel.org/stable/c/c9df8ff290097aabd5c9200f7f729b0813d37b19 https://git.kernel.org/stable/c/11ecb4f8735b0230d54a82c18b21ea778b695d61 https://git.kernel.org/stable/c/fc7b19f547bc9e622060a0a9a39da2330aa21c53 https://git.kernel.org/stable/c/66efb665cd5ad69b27dca8571bf89fc6b9c628a4