soc: qcom: rpmpd: Check for null return of devm_kcalloc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bbe3a66c3f5a65fb3d702351bac2a6033944d389 · < 5a811126d38f9767a20cc271b34db7c8efc5a46c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: rpmpd: Check for null return of devm_kcalloc
Because of the possible failure of the allocation, data->domains might be NULL pointer and will cause the dereference of the NULL pointer later. Therefore, it might be better to check it and directly return -ENOMEM without releasing data manually if fails, because the comment of the devm_kmalloc() says "Memory allocated with this function is automatically freed on driver detach.".
From the CVE record · Linux
The Linux kernel’s Qualcomm rpmpd driver may dereference a null pointer if an allocation for data->domains fails. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected Qualcomm rpmpd driver; affected versions are not specified.