{"id":"CVE-2025-39728","summary":"clk: samsung: Fix UBSAN panic in samsung_clk_init()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: samsung: Fix UBSAN panic in samsung_clk_init()\n\nWith UBSAN_ARRAY_BOUNDS=y, I'm hitting the below panic due to\ndereferencing `ctx-\u003eclk_data.hws` before setting\n`ctx-\u003eclk_data.num = nr_clks`. Move that up to fix the crash.\n\n  UBSAN: array index out of bounds: 00000000f2005512 [#1] PREEMPT SMP\n  \u003csnip\u003e\n  Call trace:\n   samsung_clk_init+0x110/0x124 (P)\n   samsung_clk_init+0x48/0x124 (L)\n   samsung_cmu_register_one+0x3c/0xa0\n   exynos_arm64_register_cmu+0x54/0x64\n   __gs101_cmu_top_of_clk_init_declare+0x28/0x60\n   ...","modified":"2026-04-16T04:32:19.389801807Z","published":"2025-04-18T07:01:35.818Z","related":["SUSE-SU-2025:01614-1","SUSE-SU-2025:01707-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01964-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:20343-1","SUSE-SU-2025:20344-1","SUSE-SU-2025:20354-1","SUSE-SU-2025:20355-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39728.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/00307934eb94aaa0a99addfb37b9fe206f945004"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0fef48f4a70e45a93e73c39023c3a6ea624714d6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/157de9e48007a20c65d02fc0229a16f38134a72d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/24307866e0ac0a5ddb462e766ceda5e27a6fbbe3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d29a6dcb51e346595a15b49693eeb728925ca43"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1500b98cd81a32fdfb9bc63c33bb9f0c2a0a1bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d19d7345a7bcdb083b65568a11b11adffe0687af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d974e177369c034984cece9d7d4fada9f8b9c740"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39728.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39728"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e620a1e061c4738e26c3edf2abaae7842532cd80"},{"fixed":"00307934eb94aaa0a99addfb37b9fe206f945004"},{"fixed":"d974e177369c034984cece9d7d4fada9f8b9c740"},{"fixed":"0fef48f4a70e45a93e73c39023c3a6ea624714d6"},{"fixed":"4d29a6dcb51e346595a15b49693eeb728925ca43"},{"fixed":"24307866e0ac0a5ddb462e766ceda5e27a6fbbe3"},{"fixed":"a1500b98cd81a32fdfb9bc63c33bb9f0c2a0a1bf"},{"fixed":"157de9e48007a20c65d02fc0229a16f38134a72d"},{"fixed":"d19d7345a7bcdb083b65568a11b11adffe0687af"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39728.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}