In the Linux kernel, the following vulnerability has been resolved: ipmi: Remove all sysfs files on registration failure ipmi_add_smi() creates the nr_users and nr_msgs files before trying to create the maintenance_mode file. If that last creation fails, the error path removes only nr_users before dropping the final reference to the interface. Remove nr_msgs as well so no sysfs attribute embedded in the freed interface remains registered.
https://git.kernel.org/stable/c/d46c97eddcbc53ca885e8bb359930c58884616ff
https://git.kernel.org/stable/c/b6c46ab0bdee90c238e96ea4a74972118c97900d
https://git.kernel.org/stable/c/b115b7d06f26b3f000d2afda88acb54c7a7cb2c9