CVE-2026-142837: clk: qcom: ipq-cmn-pll: Assign .num before accessing .hws
In the Linux kernel, the following vulnerability has been resolved:
clk: qcom: ipq-cmn-pll: Assign .num before accessing .hws
hwdata->hws[] is annotated with countedby(num), so hwdata->num must hold the element count before the array is accessed. ipqcmnpllregisterclks() assigns it only after storing the fixed rate output clocks and the CMN PLL, and the unwind loop under unregisterfixedclk reads .hws[] with .num still zero. Both are out-of-bounds accesses under CONFIGUBSANBOUNDS.
Move the assignment to right after the allocation.
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.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Compensating control
In the Linux kernel’s clk:qcom:ipq-cmn-pll code, assign hw_data->num immediately after allocation, before accessing hw_data->hws[].
Event History
Frequently Asked Questions
Under what conditions does the out-of-bounds access occur?
It occurs in the IPQ common PLL clock-registration path because hw_data->num is not set before hw_data->hws[] is accessed. The affected accesses include storing fixed-rate output clocks and the CMN PLL, plus the unregister_fixed_clk unwind loop when registration fails.
Is a kernel built without CONFIG_UBSAN_BOUNDS affected?
The described out-of-bounds accesses are identified under CONFIG_UBSAN_BOUNDS. The provided information does not establish the runtime impact or detectability for builds without that configuration.
What change resolves the issue?
Set hw_data->num to the hardware-clock array element count immediately after allocating hw_data, before any access to hw_data->hws[].