CVE-2026-139537: power: supply: ab8500_fg: Finalize current measurements
In the Linux kernel, the following vulnerability has been resolved:
power: supply: ab8500fg: Finalize current measurements
ab8500fginstcurrstart() returns with cclock held and the CCEOC IRQ enabled. The bounded sampling loop in the load-compensated voltage path returns without calling ab8500fginstcurrfinalize() when it expires, leaving both resources active. The next fuel-gauge work item then blocks on cclock and all cached power-supply values stop updating.
The Samsung-GT-I8530-Gavini, Samsung-GT-S7710-Skomer, Samsung-SGH-I407-Kyle and Samsung-SGH-T599-Codina-TMO product trees use a bounded sampling loop in drivers/battery/abbfuelgauge.c but still call the finalizer. Follow that pattern so the normal completion timeout also performs the required cleanup.
Check the start result as well and return an uncompensated voltage if the instantaneous current transaction cannot be started or completed.
Affected Software
Event History
Frequently Asked Questions
What is the operational impact if this issue is triggered?
The next fuel-gauge work item can block on cc_lock, causing cached power-supply values to stop updating. This affects reporting from the fuel-gauge path rather than indicating a broader system-wide failure.
When can the lock and interrupt be left active?
It occurs when the bounded sampling loop in the load-compensated voltage path expires without calling the instantaneous-current finalizer. In that path, the start routine has returned with cc_lock held and the CCEOC IRQ enabled.
What behavior should the corrected code use when instantaneous current sampling cannot start or finish?
It should finalize the transaction on normal completion or timeout so cc_lock is released and the CCEOC IRQ is cleaned up. If the instantaneous-current transaction cannot be started or completed, it should return an uncompensated voltage.