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 A080723DEB6 for ; Fri, 25 Jul 2025 15:29:15 +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=1753457355; cv=none; b=Ri0Dlxfjb/L2HyWX/JWeOKCNVupF2ebqijN/5F6/uCvDqeeq0izcD7f7dNlSAjHrmGgCxzZpAVEMQys48C+ln/xo2YeqWi2bNg2gVXvG17NSgJo2LAOPTgd+01vVKNX1xjZPZPBsCeC1Odgu7XZ6g+9l8bu/ch3nFrhPmwqs9uk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457355; c=relaxed/simple; bh=kBV/l/CJ+3+UP3H6ZrMCF+bof1CWXJQl11DK9hrH9vM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fhOYpbc8CBmkhTWRXlXwttSfWRBoExGv6s74HYlhbRMCZrE1jw5cd9AbA5ZRYbXONlvSh0KUpJcdKuY8jhVYUxh/0EGLf5TWVUDzu8ZOkVbYUhi3RKItbFK08U2rE2upFVXMwkI2HDBcGBtNOKVFUK0J3yh5I0Q1b3dmPEdSqzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zzeLfu0m; 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="zzeLfu0m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6AB2C4CEE7; Fri, 25 Jul 2025 15:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457355; bh=kBV/l/CJ+3+UP3H6ZrMCF+bof1CWXJQl11DK9hrH9vM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zzeLfu0mzJh2w1ZZyiciMvzRv+Gs9qHufSh2jfkMv7/RK4uKCKz/927QwYrXQystE jptg3xAKLtNiToSGmJtQqOQ4xkcPsE/dXXeAH3hsiJI9TXCPzJ3xLI2Rb6gc6kBWA4 xZBogKf43ttexEZ0MhSQwpP6ThwKx7JRtrDBoox0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38456: ipmi:msghandler: Fix potential memory corruption in ipmi_create_user() Date: Fri, 25 Jul 2025 17:28:18 +0200 Message-ID: <2025072506-CVE-2025-38456-3c0a@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2803; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A1c4BGZTVnkwFpGKdyy0Hxz5HgVRkCQNQ7EMmQ7C5DA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi9pOfhKdkRkc1v49wqsl70PVzGv/qxoc7u82UL1su yTis9GsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1xGGeRZn+0VY2x9N3c+/ I/iA1LY9E1wW3WSYZ3CT6629+spv8y19dqhKCC/1sFKSAgA= 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:msghandler: Fix potential memory corruption in ipmi_create_user() The "intf" list iterator is an invalid pointer if the correct "intf->intf_num" is not found. Calling atomic_dec(&intf->nr_users) on and invalid pointer will lead to memory corruption. We don't really need to call atomic_dec() if we haven't called atomic_add_return() so update the if (intf->in_shutdown) path as well. The Linux kernel CVE team has assigned CVE-2025-38456 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.1.146 with commit cbc1670297f675854e982d23c8583900ff0cc67a Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.6.99 with commit e2d5c005dfc96fe857676d1d8ac46b29275cb89b Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.12.39 with commit 9e0d33e75c1604c3fad5586ad4dfa3b2695a3950 Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.15.7 with commit 7c1a6ddb99858e7d68961f74ae27caeeeca67b6a Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.16-rc1 with commit fa332f5dc6fc662ad7d3200048772c96b861cf6b 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-2025-38456 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/cbc1670297f675854e982d23c8583900ff0cc67a https://git.kernel.org/stable/c/e2d5c005dfc96fe857676d1d8ac46b29275cb89b https://git.kernel.org/stable/c/9e0d33e75c1604c3fad5586ad4dfa3b2695a3950 https://git.kernel.org/stable/c/7c1a6ddb99858e7d68961f74ae27caeeeca67b6a https://git.kernel.org/stable/c/fa332f5dc6fc662ad7d3200048772c96b861cf6b