# CVE-2025-38143: backlight: pm8941: Add NULL check in wled_configure()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-07-03T08:35:44.224Z
- Modified: 2026-06-17T09:16:08.487Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f86b77583d88c8402e8d89a339d96f847318f8a8 before 6a56446595730a5e3f06a30902e23cb037d28146; from f86b77583d88c8402e8d89a339d96f847318f8a8 before 9d06ac32c202142da40904180f2669ed4f5073ac; from f86b77583d88c8402e8d89a339d96f847318f8a8 before 21528806560510458378ea52c37e35b0773afaea; from f86b77583d88c8402e8d89a339d96f847318f8a8 before fde314445332015273c8f51d2659885c606fe135; from f86b77583d88c8402e8d89a339d96f847318f8a8 before 1be2000b703b02e149f8f2061054489f6c18c972; from f86b77583d88c8402e8d89a339d96f847318f8a8 before 4a715be3fe80b68fa55cb3569af3d294be101626; from f86b77583d88c8402e8d89a339d96f847318f8a8 before e12d3e1624a02706cdd3628bbf5668827214fa33; 5.0 (not affected: before 5.0; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.94 up to 6.6.*; from 6.12.34 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 5.0 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.94; from 6.7 before 6.12.34; from 6.13 before 6.15.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/6a56446595730a5e3f06a30902e23cb037d28146> (patch)
- <https://git.kernel.org/stable/c/9d06ac32c202142da40904180f2669ed4f5073ac> (patch)
- <https://git.kernel.org/stable/c/21528806560510458378ea52c37e35b0773afaea> (patch)
- <https://git.kernel.org/stable/c/fde314445332015273c8f51d2659885c606fe135> (patch)
- <https://git.kernel.org/stable/c/1be2000b703b02e149f8f2061054489f6c18c972> (patch)
- <https://git.kernel.org/stable/c/4a715be3fe80b68fa55cb3569af3d294be101626> (patch)
- <https://git.kernel.org/stable/c/e12d3e1624a02706cdd3628bbf5668827214fa33> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38143](https://www.cve.org/CVERecord?id=CVE-2025-38143), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38143](https://nvd.nist.gov/vuln/detail/CVE-2025-38143), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38143 · Whole record: https://cve.day/CVE-2025-38143.json · Rebuilt by cve.day 2026-11-25T22:59:00.538Z
