An issue was discovered in the Linux kernel before 6.2.9. A use-after-free was found in bq24190_remove in drivers/power/supply/bq24190_charger.c. It could allow a local attacker to crash the system due to a race condition.
https://lore.kernel.org/lkml/20230309174728.233732-1-zyytlz.wz%40163.com/
https://lore.kernel.org/all/CAHk-=whcaHLNpb7Mu_QX7ABwPgyRyfW-V8=v4Mv0S22fpjY4JQ%40mail.gmail.com/
https://github.com/torvalds/linux/commit/47c29d69212911f50bdcdd0564b5999a559010d4
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.2.9