In the Linux kernel, the following vulnerability has been resolved:
power: supply: cpcap-charger: Fix null check for powersupplygetbyname
In the cpcapusbdetect() function, the powersupplygetbyname()
function may return NULL instead of an error pointer.
To prevent potential null pointer dereferences, Added a null check.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38634.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38634.json"
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27001e4f146624c4b3389b029bdc0f8049819560",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2025-38634-69e9c4af",
"digest": {
"threshold": 0.9,
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27001e4f146624c4b3389b029bdc0f8049819560",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2025-38634-70d90387",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
},
"signature_type": "Function",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9fa3aae08f99493e67fb79413c0e95d30fca5e9",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2025-38634-a21c2a7e",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
},
"signature_type": "Function",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9fa3aae08f99493e67fb79413c0e95d30fca5e9",
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2025-38634-dde3bb1a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
]
},
"signature_type": "Line",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
}
}
]