# CVE-2025-39728: clk: samsung: Fix UBSAN panic in samsung\_clk\_init()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-04-18 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-39728, DEBIAN-CVE-2025-39728
- Record: https://cvemate.com/vulnerability/CVE-2025-39728 · JSON: https://cvemate.com/vulnerability/CVE-2025-39728/json

## Description

```text
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
   ...
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.283%, percentile 22.374%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 129)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): \< 5.15.0-142.152 \| \< 6.8.0-86.87
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1086.93 \| \< 6.8.0-1041.43
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1086.93~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1041.43~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1086.93+fips1 \| \< 6.8.0-1041.43+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1091.100 \| \< 6.8.0-1041.47
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1091.100~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 44)

- <https://git.kernel.org/stable/c/00307934eb94aaa0a99addfb37b9fe206f945004>
- <https://git.kernel.org/stable/c/d974e177369c034984cece9d7d4fada9f8b9c740>
- <https://git.kernel.org/stable/c/0fef48f4a70e45a93e73c39023c3a6ea624714d6>
- <https://git.kernel.org/stable/c/4d29a6dcb51e346595a15b49693eeb728925ca43>
- <https://git.kernel.org/stable/c/24307866e0ac0a5ddb462e766ceda5e27a6fbbe3>
- <https://git.kernel.org/stable/c/a1500b98cd81a32fdfb9bc63c33bb9f0c2a0a1bf>
- <https://git.kernel.org/stable/c/157de9e48007a20c65d02fc0229a16f38134a72d>
- <https://git.kernel.org/stable/c/d19d7345a7bcdb083b65568a11b11adffe0687af>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- <https://ubuntu.com/security/CVE-2025-39728>
- <https://www.cve.org/CVERecord?id=CVE-2025-39728>
- <https://git.kernel.org/linus/d19d7345a7bcdb083b65568a11b11adffe0687af>
- <https://ubuntu.com/security/notices/USN-7591-1>
- <https://ubuntu.com/security/notices/USN-7591-2>
- <https://ubuntu.com/security/notices/USN-7591-3>
- <https://ubuntu.com/security/notices/USN-7592-1>
- <https://ubuntu.com/security/notices/USN-7593-1>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7591-4>

---

Data as of 2026-12-05T03:38:48.446Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
