CVE-2022-50276

power: supply: fix null pointer dereferencing in power_supply_get_battery_info

published September 15, 2025

CVSS
—
EPSS
0%
Percentile
4.9
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

power: supply: fix null pointer dereferencing in power_supply_get_battery_info

when kmalloc() fail to allocate memory in kasprintf(), propname

will be NULL, strcmp() called by of_get_property() will cause

null pointer dereference.

So return ENOMEM if kasprintf() return NULL pointer.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00161 · 4.9th percentile
Published
2025-09-15T14:21Z
EPSS history
Timeline
  • 15 SEP 14:21Z
    power: supply: fix null pointer dereferencing in power_supply_get_battery_info
    cvelistv5