Linux
ipmi: Remove all sysfs files on registration failure
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 627118470fccc61d7763aa667fcab0a9476843f6, < d46c97eddcbc53ca885e8bb359930c58884616ff
- >= 627118470fccc61d7763aa667fcab0a9476843f6, < b115b7d06f26b3f000d2afda88acb54c7a7cb2c9
- >= 627118470fccc61d7763aa667fcab0a9476843f6, < b6c46ab0bdee90c238e96ea4a74972118c97900d
Fixed in d46c97eddcbc53ca885e8bb359930c58884616ff, b115b7d06f26b3f000d2afda88acb54c7a7cb2c9, b6c46ab0bdee90c238e96ea4a74972118c97900d
- 6.18
Fixed in 0, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to d46c97eddcbc53ca885e8bb359930c58884616ff or b115b7d06f26b3f000d2afda88acb54c7a7cb2c9 or b6c46ab0bdee90c238e96ea4a74972118c97900d or later.
Upgrade Linux to 0 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.