What’s Vulnerable › Vulnerabilities

CVE-2024-49871: Input: adp5589-keys - fix NULL pointer dereference

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.168, 6.1.113, 6.10.14, 6.11.3. Check the vendor advisory for mitigations.

References

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