In the Linux kernel, the following vulnerability has been resolved: clk: samsung: Fix UBSAN panic in samsung_clk_init() With UBSAN_ARRAY_BOUNDS=y, I'm hitting the below panic due to dereferencing `ctx->clk_data.hws` before setting `ctx->clk_data.num = nr_clks`. Move that up to fix the crash. UBSAN: array index out of bounds: 00000000f2005512 [#1] PREEMPT SMP <snip> Call trace: samsung_clk_init+0x110/0x124 (P) samsung_clk_init+0x48/0x124 (L) samsung_cmu_register_one+0x3c/0xa0 exynos_arm64_register_cmu+0x54/0x64 __gs101_cmu_top_of_clk_init_declare+0x28/0x60 ...
2025-04-18T07:15:44.040
2025-11-03T20:18:47.170
Modified
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSSv3.1: 5.5 (MEDIUM)
| Type | Vendor | Product | Version/Range | Vulnerable? |
|---|---|---|---|---|
| Operating System | linux | linux_kernel | < 5.10.236 | Yes |
| Operating System | linux | linux_kernel | < 5.15.180 | Yes |
| Operating System | linux | linux_kernel | < 6.1.134 | Yes |
| Operating System | linux | linux_kernel | < 6.6.87 | Yes |
| Operating System | linux | linux_kernel | < 6.12.23 | Yes |
| Operating System | linux | linux_kernel | < 6.13.11 | Yes |
| Operating System | linux | linux_kernel | < 6.14.2 | Yes |