clk: davinci: Add NULL check in davinci_lpsc_clk_register()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c6ed4d734bc7f731709dab0ffd69eed499dd5277 · < 7943ed1f05f5cb7372dca2aa227f848747a98791| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clk: davinci: Add NULL check in davinci_lpsc_clk_register()
devm_kasprintf() returns NULL when memory allocation fails. Currently, davinci_lpsc_clk_register() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue and ensuring no resources are left allocated.
From the CVE record · Linux
The Linux kernel's davinci_lpsc_clk_register() fails to check whether devm_kasprintf() returned NULL after a memory allocation failure, causing a NULL pointer dereference. The input does not establish how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.