ipmi: Remove all sysfs files on registration failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.2.47.3In 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.
From the CVE record · Linux
The Linux kernel’s IPMI registration path can leave the nr_msgs sysfs attribute registered after the interface is freed if creation of maintenance_mode fails. This leaves a sysfs attribute associated with freed memory; the input does not specify an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.