# CVE-2024-46685: pinctrl: single: fix potential NULL dereference in pcs_get_function()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-09-13T05:29:17.201Z
- Modified: 2026-06-17T07:55:43.723Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

pinctrl: single: fix potential NULL dereference in pcs_get_function()

pinmux_generic_get_function() can return NULL and the pointer 'function'
was dereferenced without checking against NULL. Add checking of pointer
'function' in pcs_get_function().

Found by code review.

(As written by CVE List.)

## Affected

- Linux Linux: from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 0a2bab5ed161318f57134716accba0a30f3af191; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 2cea369a5c2e85ab14ae716da1d1cc6d25c85e11; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 4e9436375fcc9bd2a60ee96aba6ed53f7a377d10; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 6341c2856785dca7006820b127278058a180c075; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 8f0bd526921b6867c2f10a83cd4fd14139adcd92; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 4ed45fe99ec9e3c9478bd634624cd05a57d002f7; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 292151af6add3e5ab11b2e9916cffa5f52859a1f; from 571aec4df5b72a80f80d1e524da8fbd7ff525c98 before 1c38a62f15e595346a1106025722869e87ffe044; 4.11 (not affected: before 4.11; from 4.19.321 up to 4.19.*; from 5.4.283 up to 5.4.*; from 5.10.225 up to 5.10.*; from 5.15.166 up to 5.15.*; from 6.1.108 up to 6.1.*; from 6.6.49 up to 6.6.*; from 6.10.8 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 4.11 before 4.19.321; from 4.20 before 5.4.283; from 5.5 before 5.10.225; from 5.11 before 5.15.166; from 5.16 before 6.1.108; from 6.2 before 6.6.49; from 6.7 before 6.10.8; 6.11

## References

- <https://git.kernel.org/stable/c/0a2bab5ed161318f57134716accba0a30f3af191> (patch)
- <https://git.kernel.org/stable/c/2cea369a5c2e85ab14ae716da1d1cc6d25c85e11> (patch)
- <https://git.kernel.org/stable/c/4e9436375fcc9bd2a60ee96aba6ed53f7a377d10> (patch)
- <https://git.kernel.org/stable/c/6341c2856785dca7006820b127278058a180c075> (patch)
- <https://git.kernel.org/stable/c/8f0bd526921b6867c2f10a83cd4fd14139adcd92> (patch)
- <https://git.kernel.org/stable/c/4ed45fe99ec9e3c9478bd634624cd05a57d002f7> (patch)
- <https://git.kernel.org/stable/c/292151af6add3e5ab11b2e9916cffa5f52859a1f> (patch)
- <https://git.kernel.org/stable/c/1c38a62f15e595346a1106025722869e87ffe044> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-46685](https://www.cve.org/CVERecord?id=CVE-2024-46685), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46685](https://nvd.nist.gov/vuln/detail/CVE-2024-46685), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46685 · Whole record: https://cve.day/CVE-2024-46685.json · Rebuilt by cve.day 2026-11-25T22:58:45.377Z
