CVE-2022-50276 Details
Description
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.
A null pointer dereference vulnerability has been identified in the Linux kernel's power supply management component. This issue arises in the 'power_supply_get_battery_info' function when the memory allocation by 'kasprintf' fails. In such cases, the 'propname' variable becomes NULL, leading to a dereference error when 'of_get_property' compares strings. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049 | kernel.org | Patch |
| https://git.kernel.org/stable/c/279af90e65cbdb3e5c4519b0043324d7876bc5ec | kernel.org | Patch |
| https://git.kernel.org/stable/c/5beadb55f4e36fafe5d6df5dcd5f85d803f3f134 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8ea68b4e3fa9392ef9dae303abc8735a033c280f | kernel.org | Patch |
| https://git.kernel.org/stable/c/b8131efb89d9f837c9244f900f0fc2699fd1181d | kernel.org | Patch |
| https://git.kernel.org/stable/c/d21534ab4fd7883e1c8037a76671d4e8b6ea14cb | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.0, < 5.4.229 >= 5.5, < 5.10.163 >= 5.11, < 5.15.86 >= 5.16, < 6.0.16 >= 6.1, < 6.1.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |