Input: adp5589-keys - fix NULL pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 30df385e35a48f773b85117fc490152c2395e45b · < fb5cc65f973661241e4a2b7390b429aa7b330c69| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's adp5589-keys driver can dereference a NULL pointer if device probing fails before client data is set. The input does not describe an attacker-controlled trigger or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the adp5589-keys driver should check whether their kernel includes the fix; affected versions are not specified.