CVE-2025-38634

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

State
Published
Severity
Not scored
Published
Aug 22, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before 4ebbb9106aaa2fd58e0359bc3a2490953db2ef0cAffected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before a2436263144980cc99a9860c7b43335847afbe53Affected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before 8e9bdb563916287ba1b4258812434e0585ac6d00Affected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before f642500aa7ed93d2606e4f929244cce9c7467b3aAffected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before 9784d832d7c103539cd9afb376534eaa35815d3dAffected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before 27001e4f146624c4b3389b029bdc0f8049819560Affected
  • eab4e6d953c1059a30ac0f15826abc7dd2374d3c to before d9fa3aae08f99493e67fb79413c0e95d30fca5e9Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.148 through 6.1.*Not affected
  • 6.6.102 through 6.6.*Not affected
  • 6.12.42 through 6.12.*Not affected
  • 6.15.10 through 6.15.*Not affected
  • 6.16.1 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.