CVE-2022-50276

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50276
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50276.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50276
Downstream
Published
2025-09-15T15:15:38Z
Modified
2025-09-15T20:01:26Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

power: supply: fix null pointer dereferencing in powersupplygetbatteryinfo

when kmalloc() fail to allocate memory in kasprintf(), propname will be NULL, strcmp() called by ofgetproperty() will cause null pointer dereference.

So return ENOMEM if kasprintf() return NULL pointer.

References

Affected packages