{"id":"CVE-2025-40030","aliases":["CVE-2025-40030"],"related":[],"kind":"vulnerability","state":"published","title":"pinctrl: check the return value of pinmux_ops::get_function_name()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\npinctrl: verificar el valor de retorno de pinmux_ops::get_function_name()\n\nSi bien el contrato de la API en la documentación no lo especifica explícitamente, la implementación genérica de la función de callback get_function_name() de la estructura pinmux_ops - pinmux_generic_get_function_name() - puede fallar y devolver NULL. Esto ya se verifica en pinmux_check_ops(), así que se añade una verificación similar en pinmux_func_name_to_selector() en lugar de pasar el puntero devuelto directamente a strcmp() donde el NULL puede ser desreferenciado. Esta es una operación normal al añadir nuevas pinfunctions.","source":"nvd"}],"published":"2025-10-28T11:48:01.608Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"1a7fc8fed2bb2e113604fde7a45432ace2056b97","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"e7265dc4c670b89611bcf5fe33acf99bc0aa294f","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"d77ef2f621cd1d605372c4c6ce667c496f6990c3","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"ba7f7c2b2b3261e7def67018c38c69b626e0e66e","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"1a2ea887a5cd7d47bab599f733d89444df018b1a","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"688c688e0bf55824f4a38f8c2180046f089a3e3b","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"b7e0535060a60cc99eafc19cc665d979714cd73a","status":"affected"},{"type":"git","introduced":"f913cfce4ee49a3382a9ff95696f49a46e56e974","fixed":"4002ee98c022d671ecc1e4a84029e9ae7d8a5603","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.4.301","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.246","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.195","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.156","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.112","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1a7fc8fed2bb2e113604fde7a45432ace2056b97","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7265dc4c670b89611bcf5fe33acf99bc0aa294f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d77ef2f621cd1d605372c4c6ce667c496f6990c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba7f7c2b2b3261e7def67018c38c69b626e0e66e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a2ea887a5cd7d47bab599f733d89444df018b1a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/688c688e0bf55824f4a38f8c2180046f089a3e3b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7e0535060a60cc99eafc19cc665d979714cd73a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4002ee98c022d671ecc1e4a84029e9ae7d8a5603","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40030","url":"https://www.cve.org/CVERecord?id=CVE-2025-40030","licence":"CVE Terms of Use","modified":"2026-05-11T21:41:07.740Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40030","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40030","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.925Z","epss":{"score":0.00227,"percentile":0.1431,"date":"2026-12-01T12:00:22.000Z"}}