power: supply: charger-manager: fix refcount leak in is_full_charged()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e8631b883338ea4c3b5d8ddfbe16407af9f0b4b9, Kernel 193e6471e985c2f25d09b3fe96ec52f4eab89bd4, Kernel 3999f47e4bbf864e3c7fbfd813fb2f651e6b5714 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <e8631b883338ea4c3b5d8ddfbe16407af9f0b4b9, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <193e6471e985c2f25d09b3fe96ec52f4eab89bd4, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <3999f47e4bbf864e3c7fbfd813fb2f651e6b5714, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <4373cfa38ead58f980362c841b0d0bdf8c4d956c, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <6f75912cc6ff4c05ff13af351c4eea49b6b3c078, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <93b99b63ad5657225faf702670ddfeddf1f0ae29, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <afe3202c30bdff0635818ab525fe2694309d2692, >=e132fc6bb89bd307cfcdb8ba24afcd1985261485 <e44ad91e9f75f3e3ccbdb85ffe699471f9675e5b, =5.10 | e8631b883338ea4c3b5d8ddfbe16407af9f0b4b9, 193e6471e985c2f25d09b3fe96ec52f4eab89bd4, 3999f47e4bbf864e3c7fbfd813fb2f651e6b5714, 4373cfa38ead58f980362c841b0d0bdf8c4d956c, 6f75912cc6ff4c05ff13af351c4eea49b6b3c078, 93b99b63ad5657225faf702670ddfeddf1f0ae29, afe3202c30bdff0635818ab525fe2694309d2692, e44ad91e9f75f3e3ccbdb85ffe699471f9675e5b |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=5.10.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket