Bug 2395292 (CVE-2022-50276) - CVE-2022-50276 kernel: power: supply: fix null pointer dereferencing in power_supply_get_battery_info
Summary: CVE-2022-50276 kernel: power: supply: fix null pointer dereferencing in power...
Keywords:
Status: NEW
Alias: CVE-2022-50276
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 15:05 UTC by OSIDB Bzimport
Modified: 2025-09-22 17:27 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-15 15:05:48 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.