CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's power supply management, specifically in the `is_full_charged()` function, where a reference count leak occurs when the voltage check is successful. This could lead to resource exhaustion over time, potentially impacting system stability and performance. Organizations using Linux kernel versions that include this function should prioritize patching to mitigate the risk of resource leaks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: power: supply: charger-manager: fix refcount leak in is_full_charged() In is_full_charged(), power_supply_get_by_name() is called to obtain a reference to the fuel_gauge power supply. If the voltage check (uV >= desc->fullbatt_uV) succeeds, the function returns true directly without releasing the reference, leaking the refcount. Fix this by setting a flag and jumping to the out label where power_supply_put() properly drops the reference.