backlight: pm8941: Add NULL check in wled_configure()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f86b77583d88c8402e8d89a339d96f847318f8a8 · < 4a715be3fe80b68fa55cb3569af3d294be101626| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
backlight: pm8941: Add NULL check in wled_configure()
devm_kasprintf() returns NULL when memory allocation fails. Currently, wled_configure() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
From the CVE record · Linux
The Linux kernel’s pm8941 backlight driver does not check whether a memory allocation failed in wled_configure(), which can cause a NULL pointer dereference. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the pm8941 backlight driver should check whether their kernel is affected; affected versions are not specified.