Skip to contentSkip to conversation

CVE-2026-98535: fsl/fman: Fix clk reference leak in read_dts_node()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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

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

fsl/fman: Fix clk reference leak in read_dts_node()

of_clk_get() returns a clock with its reference count incremented, but read_dts_node() only uses it to read the rate and never calls clk_put(). The clock is not stored anywhere, so the reference cannot be released later either.

Release the clock once its rate has been read, which also covers the error path taken when the rate is zero.

The Linux kernel CVE team has assigned CVE-2026-98535 to this issue.

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

	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 5.10.271 with commit 874fd58b321a9238e47c2a46345444287f2a5781
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 5.15.222 with commit c2edf376d7804279878b207d93ffe6009c8d3d29
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 6.1.189 with commit 5c90f99ba74b55ddd8e919224921033cc4077f01
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 6.6.158 with commit e560bdf62b11dcaa2a018345f76869d89ed43a9e
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 6.12.112 with commit 9fd6d0861ae2fd44c771d6bc93b29bbc1202fe8e
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 6.18.55 with commit c2a5e591858629b6c0e284010d2ccdbc22fd0a43
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 7.2.9 with commit cb52f9f188c3174761ad3b37db9de751e002b52c
	Issue introduced in 4.5 with commit 414fd46e77626f4e1f89ab4be6b876ef91e89dfa and fixed in 7.3-rc5 with commit a644f09b2090ad22a13fbcf9d141084f573108ef

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-2026-98535

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/net/ethernet/freescale/fman/fman.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/874fd58b321a9238e47c2a46345444287f2a5781
	https://git.kernel.org/stable/c/c2edf376d7804279878b207d93ffe6009c8d3d29
	https://git.kernel.org/stable/c/5c90f99ba74b55ddd8e919224921033cc4077f01
	https://git.kernel.org/stable/c/e560bdf62b11dcaa2a018345f76869d89ed43a9e
	https://git.kernel.org/stable/c/9fd6d0861ae2fd44c771d6bc93b29bbc1202fe8e
	https://git.kernel.org/stable/c/c2a5e591858629b6c0e284010d2ccdbc22fd0a43
	https://git.kernel.org/stable/c/cb52f9f188c3174761ad3b37db9de751e002b52c
	https://git.kernel.org/stable/c/a644f09b2090ad22a13fbcf9d141084f573108ef