CVE-2024-46685 pinctrl: single: fix potential NULL dereference in pcs_get_function()
A missing NULL check in the Linux kernel pinctrl driver allows attackers to trigger a system crash via denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46685?
CVE-2024-46685 is a medium-severity vulnerability in Linux kernel, published on 13 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2024-46685?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-46685?
Apply the vendor's patch.
Is CVE-2024-46685 being exploited?
There is no known exploitation of CVE-2024-46685 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-49286, AZL-49293, BELL-CVE-2024-46685, DEBIAN-CVE-2024-46685, GHSA-fp3g-r7j4-vr8g, UBUNTU-CVE-2024-46685.