CVE-2025-38654 pinctrl: canaan: k230: Fix order of DT parse and pinctrl register

Medium 5.5 Published Updated

A race condition in the Canaan K230 pinctrl driver allows using uninitialized resources, potentially causing a kernel crash.

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-38654?

CVE-2025-38654 is a medium-severity vulnerability in Linux kernel, published on 22 Aug 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:

pinctrl: canaan: k230: Fix order of DT parse and pinctrl register

Move DT parse before pinctrl register. This ensures that device tree parsing is done before calling devm_pinctrl_register() to prevent using uninitialized pin resources.

Which versions are affected by CVE-2025-38654?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-38654?

Apply the vendor's patch.

Is CVE-2025-38654 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-38654, GHSA-47ch-w7qp-qwx9, UBUNTU-CVE-2025-38654.

Is CVE-2025-38654 in your software?

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

Check your SBOMs for free