CVE-2026-138860: soc: fsl: cpm1: tsa: Fix clock leak in tsa_of_parse_tdms()
In the Linux kernel, the following vulnerability has been resolved:
soc: fsl: cpm1: tsa: Fix clock leak in tsaofparsetdms()
The error cleanup loop puts l1rsyncclk and l1rclkclk a second time and never puts l1tsyncclk or l1tclkclk, because the branches that guard the transmit clocks use the receive clock field names.
Use the matching field in each branch so every clock acquired by tsaofparsetdms() is released exactly once.
[chleroy: Fixed the same in tsaremove()]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Compensating control
In tsa_of_parse_tdms() and tsa_remove(), make each clock-cleanup branch use the matching clock field: use the transmit clock fields for branches guarding transmit clocks, rather than the receive clock fields.
Event History
Frequently Asked Questions
When can the clock reference leak occur?
It can occur when tsa_of_parse_tdms() acquires clocks and then follows an error-cleanup path. The faulty cleanup can release the receive clocks twice while failing to release the transmit clocks.
Which resources are mishandled by the affected cleanup logic?
The affected logic can put l1rsync_clk and l1rclk_clk a second time, while l1tsync_clk and l1tclk_clk are not put. The fix changes the transmit-clock guards to use their matching transmit clock fields so each acquired clock is released once.
Is removal cleanup also relevant?
Yes. The provided fix information states that the same issue was corrected in tsa_remove().