CVE-2026-81006: ipmi: Remove all sysfs files on registration failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-81006 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18 with commit 627118470fccc61d7763aa667fcab0a9476843f6 and fixed in 6.18.50 with commit d46c97eddcbc53ca885e8bb359930c58884616ff Issue introduced in 6.18 with commit 627118470fccc61d7763aa667fcab0a9476843f6 and fixed in 7.2.4 with commit b115b7d06f26b3f000d2afda88acb54c7a7cb2c9 Issue introduced in 6.18 with commit 627118470fccc61d7763aa667fcab0a9476843f6 and fixed in 7.3-rc1 with commit b6c46ab0bdee90c238e96ea4a74972118c97900d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-81006
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/char/ipmi/ipmi_msghandler.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d46c97eddcbc53ca885e8bb359930c58884616ff https://git.kernel.org/stable/c/b115b7d06f26b3f000d2afda88acb54c7a7cb2c9 https://git.kernel.org/stable/c/b6c46ab0bdee90c238e96ea4a74972118c97900d