Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B9E33A6EE1 for ; Wed, 25 Mar 2026 10:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434547; cv=none; b=Zb+qsIQdIM1AXechRWQY/dhpRlEFhKN9Nek1rX/4z96dEj+BhAJ0aXJnRYlCQ5C8jS0Cq1eg8l3XkCmjgjwlaLp4KAIoj5EfvhWnlaJ+KJgCD8o2rEcFB1HzHNmeYYt3lOU66ce0ztHjbB3bNqCuMt/Islns/LUbmhP77xH0tN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434547; c=relaxed/simple; bh=r6j23QFvwMut+nc4aV+RVtEnEDddsZ4Ali9EHIMlsXc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r8zJCyI+QnlYDEShhc0T7RVMxphEkYS+j8nkZWhLEZl7q6aGOCgqgtkM9dxo1veO91HDKElOzOoaWJSch4NAJFPXUCzIXx04i5ddyq3tf89ZGSF/iN7i0z/SbQIN73q/pFoRa6gnU+z5ePide7VQ7cc9RtzpeX8lZh4wk46GezE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jn/gvsmm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Jn/gvsmm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF939C4CEF7; Wed, 25 Mar 2026 10:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434547; bh=r6j23QFvwMut+nc4aV+RVtEnEDddsZ4Ali9EHIMlsXc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Jn/gvsmmF7KhltWIFTExuerwR+3JGxrDi8SCjbXNT5s5o2hi95Zgo5Yy4xQkzGYmx 9/MN4xonML2QnxUsRpThJFL+8q20j5PXtMOZAGptZJh/b3hEcStz5etIVgBK3Ttods LFAvM0Z+YquaQwCUY5Gy89G4gnGa8aWIwopfQbOg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23322: ipmi: Fix use-after-free and list corruption on sender error Date: Wed, 25 Mar 2026 11:27:06 +0100 Message-ID: <2026032531-CVE-2026-23322-9fd3@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3220; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OoYHu+NZGNKt7uUP1Nr/s5uA1N11mB05c3y6nbV9Wd8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd4QvaZ9Sfa9rnqvutU8FPXaHi77cPnnikvXZNz9SH Fol/x/81BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATebmZYcFNzzXzr0/wv7ZC e8p9M07rmIpQttcMC66sKwpqOvN72/NtL7uvfOuWenvP/ScA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ipmi: Fix use-after-free and list corruption on sender error The analysis from Breno: When the SMI sender returns an error, smi_work() delivers an error response but then jumps back to restart without cleaning up properly: 1. intf->curr_msg is not cleared, so no new message is pulled 2. newmsg still points to the message, causing sender() to be called again with the same message 3. If sender() fails again, deliver_err_response() is called with the same recv_msg that was already queued for delivery This causes list_add corruption ("list_add double add") because the recv_msg is added to the user_msgs list twice. Subsequently, the corrupted list leads to use-after-free when the memory is freed and reused, and eventually a NULL pointer dereference when accessing recv_msg->done. The buggy sequence: sender() fails -> deliver_err_response(recv_msg) // recv_msg queued for delivery -> goto restart // curr_msg not cleared! sender() fails again (same message!) -> deliver_err_response(recv_msg) // tries to queue same recv_msg -> LIST CORRUPTION Fix this by freeing the message and setting it to NULL on a send error. Also, always free the newmsg on a send error, otherwise it will leak. The Linux kernel CVE team has assigned CVE-2026-23322 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 9cf93a8fa9513c6d3cc65bdd50e05c1355cef322 and fixed in 6.18.17 with commit c08ec55617cb9674a060a3392ea08391ab2a4f74 Issue introduced in 6.18 with commit 9cf93a8fa9513c6d3cc65bdd50e05c1355cef322 and fixed in 6.19.7 with commit 65ff5d1e4410df05edfbeb7bf2d62f7681ce1d53 Issue introduced in 6.18 with commit 9cf93a8fa9513c6d3cc65bdd50e05c1355cef322 and fixed in 7.0-rc2 with commit 594c11d0e1d445f580898a2b8c850f2e3f099368 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-23322 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/c08ec55617cb9674a060a3392ea08391ab2a4f74 https://git.kernel.org/stable/c/65ff5d1e4410df05edfbeb7bf2d62f7681ce1d53 https://git.kernel.org/stable/c/594c11d0e1d445f580898a2b8c850f2e3f099368