CVE-2024-49871 Input: adp5589-keys - fix NULL pointer dereference
A NULL pointer dereference in the adp5589-keys driver can cause a kernel crash if the probe function fails early.
- 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-49871?
CVE-2024-49871 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 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:
Input: adp5589-keys - fix NULL pointer dereference
We register a devm action to call adp5589_clear_config() and then pass the i2c client as argument so that we can call i2c_get_clientdata() in order to get our device object. However, i2c_set_clientdata() is only being set at the end of the probe function which means that we'll get a NULL pointer dereference in case the probe function fails early.
Weakness: CWE-476
Which versions are affected by CVE-2024-49871?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-49871?
Apply the vendor's patch.
Is CVE-2024-49871 being exploited?
There is no known exploitation of CVE-2024-49871 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-51231, AZL-51249, BELL-CVE-2024-49871, DEBIAN-CVE-2024-49871, GHSA-m3fc-5gx3-j98r, UBUNTU-CVE-2024-49871.