CVE-2026-139429: mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: pl353: fix clk reference leak in pl35xnfcsetupinterface()
pl35xnfcsetupinterface() obtains a reference to the SMC "memclk" with ofclkgetbyname() and only uses it to read the clock rate. The reference is never released: the function has many early return paths and no clkput() call anywhere, so the clock reference is leaked.
The hook is invoked repeatedly by the NAND core (nandreset(), nandsetupinterface() and the NANDDATAIFACECHECKONLY mode probing loops), so the reference count keeps growing.
Release the clock reference with clkput() as soon as its rate has been read.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In pl35x_nfc_setup_interface(), call clk_put() on the SMC "memclk" reference as soon as its rate has been read.
Event History
Frequently Asked Questions
Which systems are exposed to the clock-reference leak?
Systems using the Linux kernel PL353/PL35x raw NAND controller path are exposed when pl35x_nfc_setup_interface() is invoked. The leak is tied to obtaining the SMC "memclk" clock reference in that function.
When does the leaked reference count grow?
The count grows each time the NAND core invokes the interface setup hook, including through nand_reset(), nand_setup_interface(), and NAND_DATA_IFACE_CHECK_ONLY mode-probing loops. Repeated resets or interface probing can therefore accumulate unreleased references.
What change resolves the issue?
The fix releases the memclk reference with clk_put() immediately after reading the clock rate. This avoids dependence on the function's multiple early-return paths.