# CVE-2025-38634: power: supply: cpcap-charger: Fix null check for power_supply_get_by_name

- 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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-08-22T16:00:42.376Z
- Modified: 2026-06-17T09:17:15.507Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

power: supply: cpcap-charger: Fix null check for power_supply_get_by_name

In the cpcap_usb_detect() function, the power_supply_get_by_name()
function may return `NULL` instead of an error pointer.
To prevent potential null pointer dereferences, Added a null check.

(As written by CVE List.)

## Affected

- Linux Linux: from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before 4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before a2436263144980cc99a9860c7b43335847afbe53; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before 8e9bdb563916287ba1b4258812434e0585ac6d00; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before f642500aa7ed93d2606e4f929244cce9c7467b3a; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before 9784d832d7c103539cd9afb376534eaa35815d3d; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before 27001e4f146624c4b3389b029bdc0f8049819560; from eab4e6d953c1059a30ac0f15826abc7dd2374d3c before d9fa3aae08f99493e67fb79413c0e95d30fca5e9; 5.14 (not affected: before 5.14; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.14 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c> (patch)
- <https://git.kernel.org/stable/c/a2436263144980cc99a9860c7b43335847afbe53> (patch)
- <https://git.kernel.org/stable/c/8e9bdb563916287ba1b4258812434e0585ac6d00> (patch)
- <https://git.kernel.org/stable/c/f642500aa7ed93d2606e4f929244cce9c7467b3a> (patch)
- <https://git.kernel.org/stable/c/9784d832d7c103539cd9afb376534eaa35815d3d> (patch)
- <https://git.kernel.org/stable/c/27001e4f146624c4b3389b029bdc0f8049819560> (patch)
- <https://git.kernel.org/stable/c/d9fa3aae08f99493e67fb79413c0e95d30fca5e9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

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

---

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