What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.321, 5.10.225, 5.15.166, 5.4.283. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-46685 or the next vulnerability affects your stack