soc: bcm: Check for NULL return of devm_kzalloc()
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:
soc: bcm: Check for NULL return of devm_kzalloc()
As the potential failure of allocation, devm_kzalloc() may return NULL. Then the 'pd->pmb' and the follow lines of code may bring null pointer dereference.
Therefore, it is better to check the return value of devm_kzalloc() to avoid this confusion.
From the CVE record · Linux
The Linux kernel's soc bcm code may dereference a NULL pointer if devm_kzalloc() fails. The input does not establish whether an attacker can trigger the failure or whether network access, authentication, or user interaction is required.
Teams running Linux kernels with the affected soc bcm code should check their versions; affected versions are not specified.