{"id":"CVE-2024-46685","summary":"pinctrl: single: fix potential NULL dereference in pcs_get_function()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npinctrl: single: fix potential NULL dereference in pcs_get_function()\n\npinmux_generic_get_function() can return NULL and the pointer 'function'\nwas dereferenced without checking against NULL. Add checking of pointer\n'function' in pcs_get_function().\n\nFound by code review.","modified":"2026-03-20T12:37:49.681047Z","published":"2024-09-13T05:29:17.201Z","related":["SUSE-SU-2024:3551-1","SUSE-SU-2024:3553-1","SUSE-SU-2024:3559-1","SUSE-SU-2024:3561-1","SUSE-SU-2024:3564-1","SUSE-SU-2024:3566-1","SUSE-SU-2024:3569-1","SUSE-SU-2024:3587-1","SUSE-SU-2024:3591-1","SUSE-SU-2024:3592-1","SUSE-SU-2025:20073-1","SUSE-SU-2025:20077-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46685.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a2bab5ed161318f57134716accba0a30f3af191"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c38a62f15e595346a1106025722869e87ffe044"},{"type":"WEB","url":"https://git.kernel.org/stable/c/292151af6add3e5ab11b2e9916cffa5f52859a1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2cea369a5c2e85ab14ae716da1d1cc6d25c85e11"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e9436375fcc9bd2a60ee96aba6ed53f7a377d10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ed45fe99ec9e3c9478bd634624cd05a57d002f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6341c2856785dca7006820b127278058a180c075"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f0bd526921b6867c2f10a83cd4fd14139adcd92"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46685.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46685"},{"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":"571aec4df5b72a80f80d1e524da8fbd7ff525c98"},{"fixed":"0a2bab5ed161318f57134716accba0a30f3af191"},{"fixed":"2cea369a5c2e85ab14ae716da1d1cc6d25c85e11"},{"fixed":"4e9436375fcc9bd2a60ee96aba6ed53f7a377d10"},{"fixed":"6341c2856785dca7006820b127278058a180c075"},{"fixed":"8f0bd526921b6867c2f10a83cd4fd14139adcd92"},{"fixed":"4ed45fe99ec9e3c9478bd634624cd05a57d002f7"},{"fixed":"292151af6add3e5ab11b2e9916cffa5f52859a1f"},{"fixed":"1c38a62f15e595346a1106025722869e87ffe044"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46685.json"}}],"schema_version":"1.7.5"}