CVE-2026-143445: soc: qcom: pmic_pdcharger_ulog: prevent work requeue during remove
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: pmicpdchargerulog: prevent work requeue during remove
pmicpdchargerulogrpmsgremove() 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 canceldelayedworksync() returns and queue the worker again.
Device cleanup then frees the devm-allocated pmicpdchargerulog while the requeued delayed work still embeds and dereferences that object. KASAN reports a slab-use-after-free in pmicpdchargerulogwork().
Use disabledelayedworksync() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In pmic_pdcharger_ulog_rpmsg_remove(), use disable_delayed_work_sync() to drain the worker and reject requeue attempts racing with removal; invoke the driver remove callback before destroying the RPMsg endpoint.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
The affected PMIC PD charger ulog driver must be removed while its RPMsg endpoint can still deliver a response callback. A valid late response arriving after the delayed worker is cancelled but before endpoint destruction can requeue that worker, which later dereferences freed driver state.
Who is most likely exposed to this issue?
Systems using the Linux kernel's Qualcomm PMIC PD charger ulog RPMsg driver are the relevant population. The issue depends on RPMsg bus removal and teardown timing, rather than ordinary steady-state operation.
How can I tell whether the issue is occurring?
KASAN can report a slab use-after-free in pmic_pdcharger_ulog_work(). The described failure may also manifest as a warning, Oops, or panic during RPMsg device removal or endpoint teardown.
What should be done if the driver cannot be updated immediately?
The provided data does not identify a configuration workaround. Reducing or avoiding removal of the affected RPMsg device while callbacks may still be delivered may reduce exposure, but the documented fix is to prevent delayed-work requeue attempts during removal.