power: supply: cpcap-charger: Fix null check for power_supply_get_by_name (Linux Linux)

CVE-2025-38634
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < 4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c ; affected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < a2436263144980cc99a9860c7b43335847afbe53 ; affected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < 8e9bdb563916287ba1b4258812434e0585ac6d00 ; affected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < f642500aa7ed93d2606e4f929244cce9c7467b3a ; affected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < 9784d832d7c103539cd9afb376534eaa35815d3d ; affected eab4e6d953c1059a30ac0f15826abc7dd2374d3c < 27001e4f146624c4b3389b029bdc0f8049819560
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.190 ≤ 5.15.* ; unaffected 6.1.148 ≤ 6.1.* ; unaffected 6.6.102 ≤ 6.6.* ; unaffected 6.12.42 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD