Linux
ipmi: Fix use-after-free of cmd_rcvr in _ipmi_destroy_user()
In the Linux kernel, the following vulnerability has been resolved: ipmi: Fix use-after-free of cmd_rcvr in _ipmi_destroy_user() Commit 9e91f8a6c868 ("ipmi:msghandler: Remove srcu for the ipmi_interfaces list") dropped the synchronize_rcu() between unlinking the command receivers from intf->cmd_rcvrs and freeing them, updating only the comment that explains why the barrier is needed. The cmd_rcvrs list is still traversed under plain RCU: find_cmd_rcvr() walks it inside rcu_read_lock(), and handle_ipmb_get_msg_cmd() borrows rcvr->user from that lookup within the same read-side section. Without the grace period, _ipmi_destroy_user() can kfree() a cmd_rcvr while a reader still holds a pointer to it, causing a use-after-free. The rework only made srcu unnecessary for the interfaces list; the cmd_rcvrs list still relies on plain RCU. Restore the synchronize_rcu() before freeing the receivers.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9e91f8a6c8688e27f4ccce7db457da87d6458836, < 3088e41292fecf132f85f79af5ee4d620b9ff1b4
- >= 9e91f8a6c8688e27f4ccce7db457da87d6458836, < 5dc0b2a9af95a97861c1bffaf1687a3173e395c5
- >= 9e91f8a6c8688e27f4ccce7db457da87d6458836, < 05ec76cfbce653e07cec19b9b8b20e33449d5d87
Fixed in 3088e41292fecf132f85f79af5ee4d620b9ff1b4, 5dc0b2a9af95a97861c1bffaf1687a3173e395c5, 05ec76cfbce653e07cec19b9b8b20e33449d5d87
- 6.16
Fixed in 0, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 3088e41292fecf132f85f79af5ee4d620b9ff1b4 or 5dc0b2a9af95a97861c1bffaf1687a3173e395c5 or 05ec76cfbce653e07cec19b9b8b20e33449d5d87 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.