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.
[
{
"id": "CVE-2025-38634-1b304804",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e9bdb563916287ba1b4258812434e0585ac6d00",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-1ee35f40",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-23f0992e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f642500aa7ed93d2606e4f929244cce9c7467b3a",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-40b5df2d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9784d832d7c103539cd9afb376534eaa35815d3d",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-69e9c4af",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27001e4f146624c4b3389b029bdc0f8049819560",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-70b4996a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f642500aa7ed93d2606e4f929244cce9c7467b3a",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-70d90387",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@27001e4f146624c4b3389b029bdc0f8049819560",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-9ecc224a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2436263144980cc99a9860c7b43335847afbe53",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-a21c2a7e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9fa3aae08f99493e67fb79413c0e95d30fca5e9",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-d0f68a0c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2436263144980cc99a9860c7b43335847afbe53",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-d3362990",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9784d832d7c103539cd9afb376534eaa35815d3d",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-dde3bb1a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d9fa3aae08f99493e67fb79413c0e95d30fca5e9",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c"
},
"deprecated": false,
"signature_type": "Line",
"digest": {
"line_hashes": [
"123862594046324574609339997813751366700",
"131086279891340747945863310242651714124",
"15084146002216685364771498033162542880",
"163217001259475517640964878097139147323",
"281989261692300029071144457096487823722",
"79458239188476539474541877629123074211"
],
"threshold": 0.9
}
},
{
"id": "CVE-2025-38634-e70d4216",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e9bdb563916287ba1b4258812434e0585ac6d00",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
},
{
"id": "CVE-2025-38634-f9499f86",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ebbb9106aaa2fd58e0359bc3a2490953db2ef0c",
"signature_version": "v1",
"target": {
"file": "drivers/power/supply/cpcap-charger.c",
"function": "cpcap_usb_detect"
},
"deprecated": false,
"signature_type": "Function",
"digest": {
"length": 1989.0,
"function_hash": "178238873215234698466268554979595452305"
}
}
]