In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, the driver_private will be freed. But it has been added to the bus, which caused a UAF. To fix it, we need to delete it from the bus when failed.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2025022648-CVE-2022-49385-258c@gregkh/T