CVE-2022-50276NULL Pointer Dereference in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 93.75%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedSep 15

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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel5.05.4.229+4
Debianlinux/linux_kernel< 5.10.178-1+3
CVEListV5linux/linux3afb50d7125bcdbf71df843134e96ceffc78c8b88ea68b4e3fa9392ef9dae303abc8735a033c280f+6
debiandebian/linux< linux 6.1.4-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-3ggr-5x9x-2989: In the Linux kernel, the following vulnerability has been resolved: power: supply: fix null pointer dereferencing in power_supply_get_battery_info w2025-09-15
OSV
CVE-2022-50276: In the Linux kernel, the following vulnerability has been resolved: power: supply: fix null pointer dereferencing in power_supply_get_battery_info whe2025-09-15

📋Vendor Advisories

2
Red Hat
kernel: power: supply: fix null pointer dereferencing in power_supply_get_battery_info2025-09-15
Debian
CVE-2022-50276: linux - In the Linux kernel, the following vulnerability has been resolved: power: supp...2022
CVE-2022-50276 — NULL Pointer Dereference in Linux | cvebase