soc: qcom: pmic_pdcharger_ulog: prevent work requeue during remove
- CVE-2026-143445
- EUVD-2026-145074
Summary
In the Linux kernel, the Qualcomm pmic_pdcharger_ulog driver's RPMsg remove path cancelled its delayed worker while the RPMsg endpoint could still deliver callbacks. A late response callback arriving after the cancel could requeue the worker, which then referenced the devm-allocated driver object after cleanup freed it, producing a KASAN-reported slab-use-after-free. The fix uses disable_delayed_work_sync() to drain the worker and reject requeue attempts that race with removal. The record notes reproduction with a test RPMsg provider, and no unprivileged trigger or physical device result is claimed. No CVSS score is given and the record is not on the CISA known exploited list.
AI summary · verify against the vendor advisory
Description
In the Linux kernel, the following vulnerability has been resolved: soc: qcom: pmic_pdcharger_ulog: prevent work requeue during remove pmic_pdcharger_ulog_rpmsg_remove() cancels the delayed worker while the RPMsg endpoint can still deliver callbacks. The RPMsg core invokes the driver remove callback before destroying the endpoint, so a response callback can run after cancel_delayed_work_sync() returns and queue the worker again. Device cleanup then frees the devm-allocated pmic_pdcharger_ulog while the requeued delayed work still embeds and dereferences that object. KASAN reports a slab-use-after-free in pmic_pdcharger_ulog_work(). Use disable_delayed_work_sync() to drain the worker and reject queue attempts that race with removal. The issue was reproduced in four of four runs with the real target driver, RPMsg bus removal, endpoint teardown, workqueue code and devres cleanup. The test provider delivered a valid response in the window between the driver remove callback and endpoint destruction. With this change, the same late callback occurred in four of four runs without a KASAN report, warning, Oops or panic. The reproducer uses a test RPMsg provider to control the teardown timing. No unprivileged trigger or physical Qualcomm-device result is claimed.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 6.8 none stated before 6.8: not affected none stated from 6.12.119 up to 6.12.*: not affected none stated from 6.18.65 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.