Skip to contentSkip to conversation

CVE-2023-54190: leds: led-core: Fix refcount leak in of_led_get()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 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:

leds: led-core: Fix refcount leak in of_led_get()

class_find_device_by_of_node() calls class_find_device(), it will take the reference, use the put_device() to drop the reference when not need anymore.

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

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

	Issue introduced in 5.6 with commit 699a8c7c4bd376aee4808e6272188319e900c8af and fixed in 5.10.173 with commit 1d6101d9222e1ca8c01b3fa9ebf0dcf7bcd82564
	Issue introduced in 5.6 with commit 699a8c7c4bd376aee4808e6272188319e900c8af and fixed in 5.15.99 with commit 690efcb5827c3bacbf1de90cd14907b91bf8cb7b
	Issue introduced in 5.6 with commit 699a8c7c4bd376aee4808e6272188319e900c8af and fixed in 6.1.16 with commit d880981b82223f9bf128dfdd2424abb0c658f345
	Issue introduced in 5.6 with commit 699a8c7c4bd376aee4808e6272188319e900c8af and fixed in 6.2.3 with commit ddf3e82164afd9381b1d52c9f00b3878f7b6d308
	Issue introduced in 5.6 with commit 699a8c7c4bd376aee4808e6272188319e900c8af and fixed in 6.3 with commit da1afe8e6099980fe1e2fd7436dca284af9d3f29

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-54190

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/leds/led-class.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/1d6101d9222e1ca8c01b3fa9ebf0dcf7bcd82564
	https://git.kernel.org/stable/c/690efcb5827c3bacbf1de90cd14907b91bf8cb7b
	https://git.kernel.org/stable/c/d880981b82223f9bf128dfdd2424abb0c658f345
	https://git.kernel.org/stable/c/ddf3e82164afd9381b1d52c9f00b3878f7b6d308
	https://git.kernel.org/stable/c/da1afe8e6099980fe1e2fd7436dca284af9d3f29