CVE-2025-38634

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

MEDIUM
5.5
CVSS Score
Published: August 22, 2025 at 04:00 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.14 ≤ v < 5.15.1905.14 ≤ v < 6.1.1485.14 ≤ v < 6.12.425.14 ≤ v < 6.15.105.14 ≤ v < 6.16.15.14 ≤ v < 6.175.14 ≤ v < 6.6.1025.16 ≤ v < 6.1.1486.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.425.14eab4e6d953c1059a30ac0f15826abc7dd2374d3c
Vendor states this is fixed in 27001e4f146624c4b3389b029bdc0f8049819560 (fixed)
Vendor states this is fixed in 4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c (fixed)
Vendor states this is fixed in 8e9bdb563916287ba1b4258812434e0585ac6d00 (fixed)
Vendor states this is fixed in 9784d832d7c103539cd9afb376534eaa35815d3d (fixed)
Vendor states this is fixed in a2436263144980cc99a9860c7b43335847afbe53 (fixed)
Vendor states this is fixed in d9fa3aae08f99493e67fb79413c0e95d30fca5e9 (fixed)
Vendor states this is fixed in f642500aa7ed93d2606e4f929244cce9c7467b3a (fixed)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27001e4f146624c4b3389b029bdc0f8049819560
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8e9bdb563916287ba1b4258812434e0585ac6d00
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9784d832d7c103539cd9afb376534eaa35815d3d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a2436263144980cc99a9860c7b43335847afbe53
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d9fa3aae08f99493e67fb79413c0e95d30fca5e9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f642500aa7ed93d2606e4f929244cce9c7467b3a
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card