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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e132fc6bb89bd307cfcdb8ba24afcd1985261485 to < afe3202c30bdff0635818ab525fe2694309d2692affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < 93b99b63ad5657225faf702670ddfeddf1f0ae29affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < 6f75912cc6ff4c05ff13af351c4eea49b6b3c078affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < e44ad91e9f75f3e3ccbdb85ffe699471f9675e5baffectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < 3999f47e4bbf864e3c7fbfd813fb2f651e6b5714affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < 193e6471e985c2f25d09b3fe96ec52f4eab89bd4affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < e8631b883338ea4c3b5d8ddfbe16407af9f0b4b9affectede132fc6bb89bd307cfcdb8ba24afcd1985261485 to < 4373cfa38ead58f980362c841b0d0bdf8c4d956caffected
Linux Linux
Default version status: affected
5.10affected0 to < 5.10unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/afe3202c30bdff0635818ab525fe2694309d2692 ↗
- https://git.kernel.org/stable/c/93b99b63ad5657225faf702670ddfeddf1f0ae29 ↗
- https://git.kernel.org/stable/c/6f75912cc6ff4c05ff13af351c4eea49b6b3c078 ↗
- https://git.kernel.org/stable/c/e44ad91e9f75f3e3ccbdb85ffe699471f9675e5b ↗
- https://git.kernel.org/stable/c/3999f47e4bbf864e3c7fbfd813fb2f651e6b5714 ↗
- https://git.kernel.org/stable/c/193e6471e985c2f25d09b3fe96ec52f4eab89bd4 ↗
- https://git.kernel.org/stable/c/e8631b883338ea4c3b5d8ddfbe16407af9f0b4b9 ↗
- https://git.kernel.org/stable/c/4373cfa38ead58f980362c841b0d0bdf8c4d956c ↗