CVE-2022-50276
published 2025-09-15CVE-2022-50276: In the Linux kernel, the following vulnerability has been resolved: power: supply: fix null pointer dereferencing in power_supply_get_battery_info when…
PriorityP418medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.15%
4.4th percentile
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.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < 8ea68b4e3fa9392ef9dae303abc8735a033c280f | 8ea68b4e3fa9392ef9dae303abc8735a033c280f |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < 5beadb55f4e36fafe5d6df5dcd5f85d803f3f134 | 5beadb55f4e36fafe5d6df5dcd5f85d803f3f134 |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < d21534ab4fd7883e1c8037a76671d4e8b6ea14cb | d21534ab4fd7883e1c8037a76671d4e8b6ea14cb |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < 279af90e65cbdb3e5c4519b0043324d7876bc5ec | 279af90e65cbdb3e5c4519b0043324d7876bc5ec |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < b8131efb89d9f837c9244f900f0fc2699fd1181d | b8131efb89d9f837c9244f900f0fc2699fd1181d |
| linux | linux | >= 3afb50d7125bcdbf71df843134e96ceffc78c8b8 < 104bb8a663451404a26331263ce5b96c34504049 | 104bb8a663451404a26331263ce5b96c34504049 |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 5.0 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1 < 6.1.2 | 6.1.2 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
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
w
ghsa_unreviewed·2025-09-15
CVE-2022-50276 [MEDIUM] CWE-476 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
w
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.
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 whe
osv·2025-09-15·CVSS 5.5
CVE-2022-50276 [MEDIUM] 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 whe
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.
Red Hat
kernel: power: supply: fix null pointer dereferencing in power_supply_get_battery_info
vendor_redhat·2025-09-15·CVSS 5.5
CVE-2022-50276 [MEDIUM] CWE-476 kernel: power: supply: fix null pointer dereferencing in power_supply_get_battery_info
kernel: power: supply: fix null pointer dereferencing in power_supply_get_battery_info
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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 8) -
Debian
CVE-2022-50276: linux - In the Linux kernel, the following vulnerability has been resolved: power: supp...
vendor_debian·2022·CVSS 5.5
CVE-2022-50276 [MEDIUM] CVE-2022-50276: linux - In the Linux kernel, the following vulnerability has been resolved: power: supp...
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.
Scope: local
bookworm: resolved (fixed in 6.1.4-1)
bullseye: resolved (fixed in 5.10.178-1)
forky: resolved (fixed in 6.1.4-1)
sid: resolved (fixed in 6.1.4-1)
trixie: resolved (fixed in 6.1.4-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049https://git.kernel.org/stable/c/279af90e65cbdb3e5c4519b0043324d7876bc5echttps://git.kernel.org/stable/c/5beadb55f4e36fafe5d6df5dcd5f85d803f3f134https://git.kernel.org/stable/c/8ea68b4e3fa9392ef9dae303abc8735a033c280fhttps://git.kernel.org/stable/c/b8131efb89d9f837c9244f900f0fc2699fd1181dhttps://git.kernel.org/stable/c/d21534ab4fd7883e1c8037a76671d4e8b6ea14cb
2025-09-15
Published