In the Linux kernel, the following vulnerability has been resolved: clk: qcom: ipq-cmn-pll: Assign .num before accessing .hws hw_data->hws[] is annotated with __counted_by(num), so hw_data->num must hold the element count before the array is accessed. ipq_cmn_pll_register_clks() assigns it only after storing the fixed rate output clocks and the CMN PLL, and the unwind loop under unregister_fixed_clk reads .hws[] with .num still zero. Both are out-of-bounds accesses under CONFIG_UBSAN_BOUNDS. Move the assignment to right after the allocation.
https://git.kernel.org/stable/c/324cc3d6fafeebbad8892e25c23e018a98909ec5
https://git.kernel.org/stable/c/29d810702de082a48d7afebd86c87d9a15b41ff1
https://git.kernel.org/stable/c/231bbd135772390522be3656b34b49ea3039eccf