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.