# CVE-2025-39728: clk: samsung: Fix UBSAN panic in samsung_clk_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-02)
- Published: 2025-04-18T07:01:35.818Z
- Modified: 2026-06-17T09:18:21.620Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from e620a1e061c4738e26c3edf2abaae7842532cd80 before 00307934eb94aaa0a99addfb37b9fe206f945004; from e620a1e061c4738e26c3edf2abaae7842532cd80 before d974e177369c034984cece9d7d4fada9f8b9c740; from e620a1e061c4738e26c3edf2abaae7842532cd80 before 0fef48f4a70e45a93e73c39023c3a6ea624714d6; from e620a1e061c4738e26c3edf2abaae7842532cd80 before 4d29a6dcb51e346595a15b49693eeb728925ca43; from e620a1e061c4738e26c3edf2abaae7842532cd80 before 24307866e0ac0a5ddb462e766ceda5e27a6fbbe3; from e620a1e061c4738e26c3edf2abaae7842532cd80 before a1500b98cd81a32fdfb9bc63c33bb9f0c2a0a1bf; from e620a1e061c4738e26c3edf2abaae7842532cd80 before 157de9e48007a20c65d02fc0229a16f38134a72d; from e620a1e061c4738e26c3edf2abaae7842532cd80 before d19d7345a7bcdb083b65568a11b11adffe0687af; 5.5 (not affected: before 5.5; from 5.10.236 up to 5.10.*; from 5.15.180 up to 5.15.*; from 6.1.134 up to 6.1.*; from 6.6.87 up to 6.6.*; from 6.12.23 up to 6.12.*; from 6.13.11 up to 6.13.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.5 before 5.10.236; from 5.11 before 5.15.180; from 5.16 before 6.1.134; from 6.2 before 6.6.87; from 6.7 before 6.12.23; from 6.13 before 6.13.11; from 6.14 before 6.14.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/00307934eb94aaa0a99addfb37b9fe206f945004> (patch)
- <https://git.kernel.org/stable/c/d974e177369c034984cece9d7d4fada9f8b9c740> (patch)
- <https://git.kernel.org/stable/c/0fef48f4a70e45a93e73c39023c3a6ea624714d6> (patch)
- <https://git.kernel.org/stable/c/4d29a6dcb51e346595a15b49693eeb728925ca43> (patch)
- <https://git.kernel.org/stable/c/24307866e0ac0a5ddb462e766ceda5e27a6fbbe3> (patch)
- <https://git.kernel.org/stable/c/a1500b98cd81a32fdfb9bc63c33bb9f0c2a0a1bf> (patch)
- <https://git.kernel.org/stable/c/157de9e48007a20c65d02fc0229a16f38134a72d> (patch)
- <https://git.kernel.org/stable/c/d19d7345a7bcdb083b65568a11b11adffe0687af> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Sources

- CVE List: [CVE-2025-39728](https://www.cve.org/CVERecord?id=CVE-2025-39728), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39728](https://nvd.nist.gov/vuln/detail/CVE-2025-39728), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-39728 · Whole record: https://cve.day/CVE-2025-39728.json · Rebuilt by cve.day 2026-11-25T22:58:56.760Z
