{"id":"CVE-2026-23322","summary":"ipmi: Fix use-after-free and list corruption on sender error","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nipmi: Fix use-after-free and list corruption on sender error\n\nThe analysis from Breno:\n\nWhen the SMI sender returns an error, smi_work() delivers an error\nresponse but then jumps back to restart without cleaning up properly:\n\n1. intf-\u003ecurr_msg is not cleared, so no new message is pulled\n2. newmsg still points to the message, causing sender() to be called\n   again with the same message\n3. If sender() fails again, deliver_err_response() is called with\n   the same recv_msg that was already queued for delivery\n\nThis causes list_add corruption (\"list_add double add\") because the\nrecv_msg is added to the user_msgs list twice. Subsequently, the\ncorrupted list leads to use-after-free when the memory is freed and\nreused, and eventually a NULL pointer dereference when accessing\nrecv_msg-\u003edone.\n\nThe buggy sequence:\n\n  sender() fails\n    -\u003e deliver_err_response(recv_msg)  // recv_msg queued for delivery\n    -\u003e goto restart                    // curr_msg not cleared!\n  sender() fails again (same message!)\n    -\u003e deliver_err_response(recv_msg)  // tries to queue same recv_msg\n    -\u003e LIST CORRUPTION\n\nFix this by freeing the message and setting it to NULL on a send error.\nAlso, always free the newmsg on a send error, otherwise it will leak.","modified":"2026-04-02T13:12:21.343312Z","published":"2026-03-25T10:27:15.954Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23322.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/594c11d0e1d445f580898a2b8c850f2e3f099368"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65ff5d1e4410df05edfbeb7bf2d62f7681ce1d53"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c08ec55617cb9674a060a3392ea08391ab2a4f74"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23322.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23322"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9cf93a8fa9513c6d3cc65bdd50e05c1355cef322"},{"fixed":"c08ec55617cb9674a060a3392ea08391ab2a4f74"},{"fixed":"65ff5d1e4410df05edfbeb7bf2d62f7681ce1d53"},{"fixed":"594c11d0e1d445f580898a2b8c850f2e3f099368"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23322.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23322.json"}}],"schema_version":"1.7.5"}