In the Linux kernel, the following vulnerability has been resolved: driver core: bus: Fix double free in driver API bus_register() For bus_register(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free.
https://git.kernel.org/stable/c/fc1f391a71a3ee88291e205cffd673fe24d99266
https://git.kernel.org/stable/c/d885c464c25018b81a6b58f5d548fc2e3ef87dd1
https://git.kernel.org/stable/c/bfa54a793ba77ef696755b66f3ac4ed00c7d1248
https://git.kernel.org/stable/c/9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a
https://git.kernel.org/stable/c/5be4bc1c73ca389a96d418a52054d897c6fe6d21
https://git.kernel.org/stable/c/4797953712214ea57a437443bb0ad6d1e0646d70