soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc
The allocation funciton devm_kcalloc may fail and return a null pointer, which would cause a null-pointer dereference later. It might be better to check it and directly return -ENOMEM just like the usage of devm_kcalloc in previous code.
From the CVE record · Linux
In the Linux kernel's ti_sci_pm_domains component, devm_kcalloc can fail and return a null pointer that is dereferenced later. The input does not establish how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the fix; affected versions are not specified.