CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's MAX17040 power supply driver, which fails to handle the absence of a charger supplier correctly, allowing userspace to read uninitialized status values from the battery power supply. This can lead to incorrect battery status reporting, potentially causing operational issues in systems relying on accurate power management. Organizations using Linux systems with the MAX17040 fuel gauge should prioritize addressing this vulnerability to ensure reliable battery status reporting and prevent potential system malfunctions.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: max17040: handle missing status supplier MAX17040 does not report charger state itself, so the driver forwards POWER_SUPPLY_PROP_STATUS to a supplier power supply. If no supplier is registered, power_supply_get_property_from_supplier() returns -ENODEV and leaves the output value untouched. max17040_get_property() currently ignores that error and returns success, so userspace can read an uninitialized status value from the battery power supply. This happens on systems that use the fuel gauge without a charger supplier relationship in firmware. Return POWER_SUPPLY_STATUS_UNKNOWN when no supplier provides STATUS, and propagate other supplier lookup errors.