regulator: da9063: better fix null deref with partial DT
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
Original description
In the Linux kernel, the following vulnerability has been resolved:
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
regulator: da9063: better fix null deref with partial DT
Two versions of the original patch were sent but V1 was merged instead of V2 due to a mistake.
So update to V2.
The advantage of V2 is that it completely avoids dereferencing the pointer, even just to take the address, which may fix problems with some compilers. Both versions work on my gcc 9.4 but use the safer one.
From the CVE record · Linux
The Linux kernel’s da9063 regulator code can dereference a null pointer when handling a partial device tree. The input does not establish how an attacker could trigger this issue or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels that use the da9063 regulator should check their versions; affected versions are not specified.