CVE-2025-38143: backlight: pm8941: Add NULL check in wled_configure()
In the Linux kernel, the following vulnerability has been resolved:
backlight: pm8941: Add NULL check in wledconfigure()
devmkasprintf() returns NULL when memory allocation fails. Currently, wledconfigure() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devmkasprintf() to prevent this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1 - Compensating control
Add a NULL check after devm_kasprintf() in wled_configure() to handle memory-allocation failure and prevent NULL pointer dereference.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38143?
CVE-2025-38143 has been classified as a medium severity vulnerability due to the potential for NULL pointer dereference.
How do I fix CVE-2025-38143?
To resolve CVE-2025-38143, update your Linux kernel to the latest version where this vulnerability has been patched.
What component is affected by CVE-2025-38143?
CVE-2025-38143 affects the backlight configuration in the Linux kernel, specifically in the function wled_configure().
Is CVE-2025-38143 exploitable?
Yes, CVE-2025-38143 is exploitable if the wled_configure() function is invoked without proper checks in place.
What does CVE-2025-38143 involve?
CVE-2025-38143 involves a NULL check omission in the wled_configure() function, leading to potential crashes in the system.