regulator: da9063: fix null pointer deref with partial DT config
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
regulator: da9063: fix null pointer deref with partial DT config
When some of the da9063 regulators do not have corresponding DT nodes a null pointer dereference occurs on boot because such regulators have no init_data causing the pointers calculated in da9063_check_xvp_constraints() to be invalid.
Do not dereference them in this case.
From the CVE record · Linux
The Linux kernel's da9063 regulator driver can dereference a null pointer during boot when some regulators lack corresponding device-tree nodes. This can cause a boot-time crash; no attacker path, authentication requirement, or user interaction is described.
Engineers running Linux kernels that use the da9063 regulator driver should check their systems; affected versions are not specified.