CVE-2022-50276
power: supply: fix null pointer dereferencing in power_supply_get_battery_info
Check your servers for CVE-2022-50276
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50276 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.21% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before 8ea68b4e3fa9392ef9dae303abc8735a033c280f affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before 5beadb55f4e36fafe5d6df5dcd5f85d803f3f134 affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before d21534ab4fd7883e1c8037a76671d4e8b6ea14cb affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before 279af90e65cbdb3e5c4519b0043324d7876bc5ec affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before b8131efb89d9f837c9244f900f0fc2699fd1181d affected from 3afb50d7125bcdbf71df843134e96ceffc78c8b8, before 104bb8a663451404a26331263ce5b96c34504049
Other versions: unaffected
|
| Linux |
affected 5.0 unaffected before 5.0 unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50276 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50276
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50276
trivy image --scanners vuln IMAGE | grep CVE-2022-50276
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/8ea68b4e3fa9392ef9dae303abc8735a033c280f git.kernel.org
- https://git.kernel.org/stable/c/5beadb55f4e36fafe5d6df5dcd5f85d803f3f134 git.kernel.org
- https://git.kernel.org/stable/c/d21534ab4fd7883e1c8037a76671d4e8b6ea14cb git.kernel.org
- https://git.kernel.org/stable/c/279af90e65cbdb3e5c4519b0043324d7876bc5ec git.kernel.org
- https://git.kernel.org/stable/c/b8131efb89d9f837c9244f900f0fc2699fd1181d git.kernel.org
- https://git.kernel.org/stable/c/104bb8a663451404a26331263ce5b96c34504049 git.kernel.org
Source: the record CVE-2022-50276 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse