In the Linux kernel, the following vulnerability has been resolved: driver core: bus: Fix double free in driver API busregister() For busregister(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free.