In the Linux kernel, the following vulnerability has been resolved: dm-sysfs: fix misbehavior if kobject_init_and_add fails If kobject_init_and_add fails, we must call kobject_put (see the comment at kobject_init_and_add). Before calling kobject_init_and_add, we must zero the kobject (see https://lwn.net/Articles/52085/). If the first call to dm_sysfs_init failed, it may be called again, and that second call would see an uninitialized kobject.
https://git.kernel.org/stable/c/b1c8bb1867a9bfaf7c4dd3ad890a9ed621a96005
https://git.kernel.org/stable/c/ab8bfdfcbd88e757ab7fbe215fe7fdb2ef72ecba
https://git.kernel.org/stable/c/61f181e351020f01027e0e78b933a3b004df46cb
https://git.kernel.org/stable/c/57b11b31d9a5453b87eac5c305b4c29e6047d80d
https://git.kernel.org/stable/c/4f0045fbead234751e7a89aa899c88e8833ec70f
https://git.kernel.org/stable/c/406d576cc457203cf86eac7f17839b2efec81db4