CVE-2025-40030 Details
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.
A vulnerability exists in the Linux kernel's pin control subsystem, specifically within the function name handling of the pin multiplexing operations. The issue arises because the generic implementation of the 'get_function_name()' callback can fail and return a null value. This potential failure was not properly checked in the 'pinmux_func_name_to_selector()' function, leading to a null pointer dereference risk. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed by adding a check for null values returned by the 'get_function_name()' callback before comparing the function names. Users should upgrade to the latest version of the Linux kernel stable tree where this fix has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1a2ea887a5cd7d47bab599f733d89444df018b1a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/1a7fc8fed2bb2e113604fde7a45432ace2056b97 | kernel.org | |
| https://git.kernel.org/stable/c/4002ee98c022d671ecc1e4a84029e9ae7d8a5603 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/688c688e0bf55824f4a38f8c2180046f089a3e3b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b7e0535060a60cc99eafc19cc665d979714cd73a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ba7f7c2b2b3261e7def67018c38c69b626e0e66e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d77ef2f621cd1d605372c4c6ce667c496f6990c3 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e7265dc4c670b89611bcf5fe33acf99bc0aa294f | kernel.org |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 29, 2025 | CVE Modified | kernel.org |
| Oct 28, 2025 | New CVE Received | kernel.org |
Volerion