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

Medium 5.5 Published Updated

A missing null check in the Linux kernel's cpcap-charger driver can lead to a null pointer dereference, causing a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-38634?

CVE-2025-38634 is a medium-severity vulnerability in Debian Debian Linux, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2025-38634?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38634?

Apply the vendor's patch.

Is CVE-2025-38634 being exploited?

There is no known exploitation of CVE-2025-38634 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-66647, BELL-CVE-2025-38634, DEBIAN-CVE-2025-38634, GHSA-v489-2rf4-qq7m, ROOT-OS-DEBIAN-12-CVE-2025-38634, ROOT-OS-DEBIAN-13-CVE-2025-38634 and 3 more.

Is CVE-2025-38634 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free