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

Medium 5.5 Published Updated

A null pointer dereference in the Samsung clock driver causes a kernel panic, leading to denial of service on affected Linux systems.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-39728?

CVE-2025-39728 is a medium-severity vulnerability in Linux kernel, published on 18 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-129

Which versions are affected by CVE-2025-39728?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39728?

Apply the vendor's patch.

Is CVE-2025-39728 being exploited?

There is no known exploitation of CVE-2025-39728 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-39728, DEBIAN-CVE-2025-39728, GHSA-65gg-hq36-f232, ROOT-OS-UBUNTU-2404-CVE-2025-39728, UBUNTU-CVE-2025-39728.

Is CVE-2025-39728 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free