CVE-2025-40030 pinctrl: check the return value of pinmux_ops::get_function_name()

Not scored Published Updated

A null pointer dereference in the Linux kernel pinctrl subsystem allows local attackers to cause a denial of service.

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

CVE-2025-40030 is a vulnerability in Linux, published on 28 Oct 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: check the return value of pinmux_ops::get_function_name()

While the API contract in docs doesn't specify it explicitly, the generic implementation of the get_function_name() callback from struct pinmux_ops - pinmux_generic_get_function_name() - can fail and return NULL. This is already checked in pinmux_check_ops() so add a similar check in pinmux_func_name_to_selector() instead of passing the returned pointer right down to strcmp() where the NULL can get dereferenced. This is normal operation when adding new pinfunctions.

Which versions are affected by CVE-2025-40030?

How do I fix CVE-2025-40030?

Apply the vendor's patch.

Is CVE-2025-40030 being exploited?

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

Sources

Also known as AZL-68849, BELL-CVE-2025-40030, DEBIAN-CVE-2025-40030, GHSA-jq6c-xqjw-rcrp, ROOT-OS-DEBIAN-11-CVE-2025-40030, ROOT-OS-DEBIAN-12-CVE-2025-40030 and 4 more.

Is CVE-2025-40030 in your software?

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

Check your SBOMs for free