Linux
ipmi: Fix user refcount underflow in event delivery
In the Linux kernel, the following vulnerability has been resolved: ipmi: Fix user refcount underflow in event delivery ipmi_alloc_recv_msg(user) takes the temporary user reference owned by the receive message, and ipmi_free_recv_msg() drops it again. If event delivery fails after allocating receive messages for earlier users, handle_read_event_rsp() rolls those messages back with ipmi_free_recv_msg(). That rollback path still drops user->refcount explicitly after freeing each message. The extra put can free a user that remains linked on intf->users, so later event delivery may dereference a freed user or trip refcount_t's addition-on-zero warning when ipmi_alloc_recv_msg() tries to acquire another reference. Remove the stale explicit put and the now-dead user assignment. Keep the list_del() and ipmi_free_recv_msg() calls; they are the required rollback operations.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b52da4054ee0bf9ecb44996f2c83236ff50b3812, < ddbb6e3dc9bb4743de686aa1598c31e745cee76b
- >= b52da4054ee0bf9ecb44996f2c83236ff50b3812, < 7be349d4fcc5e065295b83418a22d27a68afbdb6
- >= b52da4054ee0bf9ecb44996f2c83236ff50b3812, < 6aa9e61c46465d231e9beddf56af7effd71be682
- f63723ca7d7623f9dae1990973cd158671f03c56
- 348121b29594d42d1635648fd3ed31dfa25351d5
- 53d6e403affbf6df2c859a0ea00ccfc1e72090ca
- 0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5
- >= 6.1.157, < 6.2
- >= 6.6.113, < 6.7
- >= 6.12.54, < 6.13
- >= 6.17.4, < 6.18
Fixed in ddbb6e3dc9bb4743de686aa1598c31e745cee76b, 7be349d4fcc5e065295b83418a22d27a68afbdb6, 6aa9e61c46465d231e9beddf56af7effd71be682, 6.2, 6.7, 6.13, 6.18
- 6.18
Fixed in 0, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to ddbb6e3dc9bb4743de686aa1598c31e745cee76b or 7be349d4fcc5e065295b83418a22d27a68afbdb6 or 6aa9e61c46465d231e9beddf56af7effd71be682 or 6.2 or 6.7 or 6.13 or 6.18 or later.
Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 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.