CVE-2025-40030

Source
https://cve.org/CVERecord?id=CVE-2025-40030
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40030.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40030
Downstream
Related
Published
2025-10-28T11:48:01.608Z
Modified
2026-03-20T12:43:09.014886Z
Summary
pinctrl: check the return value of pinmux_ops::get_function_name()
Details

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: check the return value of pinmuxops::getfunction_name()

While the API contract in docs doesn't specify it explicitly, the generic implementation of the getfunctionname() callback from struct pinmuxops - pinmuxgenericgetfunctionname() - can fail and return NULL. This is already checked in pinmuxcheckops() so add a similar check in pinmuxfuncnameto_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40030.json"
}
References

Affected packages

Git / 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
f913cfce4ee49a3382a9ff95696f49a46e56e974
Fixed
1a7fc8fed2bb2e113604fde7a45432ace2056b97
Fixed
e7265dc4c670b89611bcf5fe33acf99bc0aa294f
Fixed
d77ef2f621cd1d605372c4c6ce667c496f6990c3
Fixed
ba7f7c2b2b3261e7def67018c38c69b626e0e66e
Fixed
1a2ea887a5cd7d47bab599f733d89444df018b1a
Fixed
688c688e0bf55824f4a38f8c2180046f089a3e3b
Fixed
b7e0535060a60cc99eafc19cc665d979714cd73a
Fixed
4002ee98c022d671ecc1e4a84029e9ae7d8a5603

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40030.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.4.301
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40030.json"