Skip to contentSkip to conversation

CVE-2023-54111: pinctrl: rockchip: Fix refcount leak in rockchip_pinctrl_parse_groups

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: rockchip: Fix refcount leak in rockchip_pinctrl_parse_groups

of_find_node_by_phandle() returns a node pointer with refcount incremented, We should use of_node_put() on it when not needed anymore.
Add missing of_node_put() to avoid refcount leak.

The Linux kernel CVE team has assigned CVE-2023-54111 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 4.14.308 with commit aa017ab5716c9157c65fdce061c4a4a568af53a8
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 4.19.276 with commit 5868013522297bf628eee4322d99d6d4de4f308e
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 5.4.270 with commit 954a7a0011d94475f8ba5ceb77a5d11e01cf402f
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 5.10.173 with commit d562054a3a2eede3507a5461011ee82b671fcb88
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 5.15.99 with commit 0f735f232ff59863e0b6ebac0849d637e215a9c2
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 6.1.16 with commit dbef00ef4b9b98d15183340396e5df0fa7a860d8
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 6.2.3 with commit 3c40b34e3462aab12af3dba77d2e1602afc72e80
	Issue introduced in 3.11 with commit d3e5116119bd02ea7716bbe04b39c21bba4bcf42 and fixed in 6.3 with commit c818ae563bf99457f02e8170aabd6b174f629f65

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-2023-54111

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/pinctrl/pinctrl-rockchip.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/aa017ab5716c9157c65fdce061c4a4a568af53a8
	https://git.kernel.org/stable/c/5868013522297bf628eee4322d99d6d4de4f308e
	https://git.kernel.org/stable/c/954a7a0011d94475f8ba5ceb77a5d11e01cf402f
	https://git.kernel.org/stable/c/d562054a3a2eede3507a5461011ee82b671fcb88
	https://git.kernel.org/stable/c/0f735f232ff59863e0b6ebac0849d637e215a9c2
	https://git.kernel.org/stable/c/dbef00ef4b9b98d15183340396e5df0fa7a860d8
	https://git.kernel.org/stable/c/3c40b34e3462aab12af3dba77d2e1602afc72e80
	https://git.kernel.org/stable/c/c818ae563bf99457f02e8170aabd6b174f629f65