power: supply: bq27xxx: Ensure poll work is cancelled on remove (Linux Linux)

CVE-2026-139028
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 13 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Produits affectés
Linux · Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: power: supply: bq27xxx: Ensure poll work is cancelled on remove The di->work poll work is queued from the poll callback itself and from bq27xxx_external_power_changed(). The cancel_delayed_work_sync() in bq27xxx_battery_teardown() runs while the power_supply is still registered, so external_power_changed() can re-arm the work after the cancel, and it runs after the driver data has been freed. Register a devm_delayed_work_autocancel() before devm_power_supply_register(), so on unwind the power_supply is unregistered first, after which no new external_power_changed() callback can be dispatched, and the poll work is cancelled only then. Drop the now-redundant cancel from bq27xxx_battery_teardown(). This issue was found by an in-house static analysis tool.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions affectées
Linux · Linux
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < f70fc2186da6eaf93e22c9eb6d8cb0b14c9bdace
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < f0826debc931fad54f228ed7fc0b0a69a3ac84aa
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < a8a4d1d89dfc925b4437ba66fde9790ab1c4f285
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < 0187e06729fd3fd1e86ce52f51c512bbd0c39e6c
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < 63181ae0a49b52dfcb30f41bfef45aa004177e39
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < bc717d870fb6b6e15e386ea80ec9356a15d36792
affectée : ≥ 740b755a3b3433f5ee5f9ef54de5d1b4c08223cc < db560f4b1c5253853f978385db066220e0c218dc
Autres versions : non affectée
Linux · Linux
affectée : 2.6.39
non affectée : ≥ 0 < 2.6.39
non affectée : ≥ 5.15.226 ≤ 5.15.*
non affectée : ≥ 6.1.193 ≤ 6.1.*
non affectée : ≥ 6.6.163 ≤ 6.6.*
non affectée : ≥ 6.12.118 ≤ 6.12.*
non affectée : ≥ 6.18.63 ≤ 6.18.*
non affectée : ≥ 7.3.4 ≤ 7.3.*
non affectée : ≥ 7.4-rc1 ≤ *
Autres versions : affectée

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD