{"id":"CVE-2025-40030","summary":"pinctrl: check the return value of pinmux_ops::get_function_name()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: check the return value of pinmux_ops::get_function_name()\n\nWhile the API contract in docs doesn't specify it explicitly, the\ngeneric implementation of the get_function_name() callback from struct\npinmux_ops - pinmux_generic_get_function_name() - can fail and return\nNULL. This is already checked in pinmux_check_ops() so add a similar\ncheck in pinmux_func_name_to_selector() instead of passing the returned\npointer right down to strcmp() where the NULL can get dereferenced. This\nis normal operation when adding new pinfunctions.","modified":"2026-04-16T04:32:26.598630971Z","published":"2025-10-28T11:48:01.608Z","related":["SUSE-SU-2025:4393-1","SUSE-SU-2025:4422-1","SUSE-SU-2025:4505-1","SUSE-SU-2025:4515-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2025:4521-1","SUSE-SU-2026:20039-1","SUSE-SU-2026:20059-1","SUSE-SU-2026:20473-1","SUSE-SU-2026:20496-1","SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1","openSUSE-SU-2026:20287-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40030.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a2ea887a5cd7d47bab599f733d89444df018b1a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1a7fc8fed2bb2e113604fde7a45432ace2056b97"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4002ee98c022d671ecc1e4a84029e9ae7d8a5603"},{"type":"WEB","url":"https://git.kernel.org/stable/c/688c688e0bf55824f4a38f8c2180046f089a3e3b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b7e0535060a60cc99eafc19cc665d979714cd73a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba7f7c2b2b3261e7def67018c38c69b626e0e66e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d77ef2f621cd1d605372c4c6ce667c496f6990c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7265dc4c670b89611bcf5fe33acf99bc0aa294f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40030.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40030"},{"type":"PACKAGE","url":"https://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/cve-osv-conversion/osv-output/CVE-2025-40030.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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/cve-osv-conversion/osv-output/CVE-2025-40030.json"}}],"schema_version":"1.7.5"}