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 F25072E8B67 for ; Wed, 12 Nov 2025 22:01:20 +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=1762984881; cv=none; b=WRcjBwIzfrFezQYBtbvXD2QjU5zxwjhIer6WjL5/jAuWerYZxbCCQHTROqG0iVGejH7whcuRldqMtCRWjn1fMmChY5bZoJPuNhk8tsMIPA5Zvuhg/4S2kbdyg9vl0ns041L9yHOogPVwmWDhnN+UY2Xx+tIZqyZWkA5j5Aqdsl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762984881; c=relaxed/simple; bh=SN56cpaZdI3F06+3KcXMIKJYMrgcXKEdrH86mUQw12M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ekGJ5Mp95QmtNOXBkCgNjHjihLyw7RkDKw8XS3D+8gywmmU9mVsN85Q7SDzlxOQ2EjuyaIQaMWCSNMeLULVulEkaMsUbCT/t1WAxjpBv8QTJUFBc19toAbNRWaKHhsIavwN/G9wywqDTJaO5PuCdCUIEN4Q0Bj0zwIgpTfSL9n8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jMLytrtw; 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="jMLytrtw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4BB1C4CEF5; Wed, 12 Nov 2025 22:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762984880; bh=SN56cpaZdI3F06+3KcXMIKJYMrgcXKEdrH86mUQw12M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jMLytrtwKuDLW0O3A2WYLRjS3iG/24CQnKEquLn8fEA2EX/xHO17UrL1OQISD6b4c E4VJyagp5Cb5Zkp+B5IU7tAq/uh3rde+ledG7JgGJvzrFnKAIU0pCVgbUA24oHawWs d0n/HPrObe5hS1YhIc3acRJxiivIj9dH9o3Tw6F4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40202: ipmi: Rework user message limit handling Date: Wed, 12 Nov 2025 17:01:05 -0500 Message-ID: <2025111246-CVE-2025-40202-f5ad@gregkh> X-Mailer: git-send-email 2.51.2 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=2770; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qYl0L7wPej+UNGfipnU8rCr+bhvhEI9sNuRUjJKu/E4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmizH3ujNs4TP6zuavuurk+huF16LEF97ruPOphl4146 qSZ8jWtI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYit5dhwYZbXYbGf/UnSfrf /Sy9ISfv2coAN4Y5vI8lu3/8P3bY52xwTaMUUyj7/2ZRAA== 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: Rework user message limit handling The limit on the number of user messages had a number of issues, improper counting in some cases and a use after free. Restructure how this is all done to handle more in the receive message allocation routine, so all refcouting and user message limit counts are done in that routine. It's a lot cleaner and safer. The Linux kernel CVE team has assigned CVE-2025-40202 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.1.157 with commit f63723ca7d7623f9dae1990973cd158671f03c56 Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.6.113 with commit 348121b29594d42d1635648fd3ed31dfa25351d5 Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.12.54 with commit 53d6e403affbf6df2c859a0ea00ccfc1e72090ca Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.17.4 with commit 0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5 Issue introduced in 5.19 with commit 8e76741c3d8b20dfa2d6c30fa10ff927cfd93d82 and fixed in 6.18-rc1 with commit b52da4054ee0bf9ecb44996f2c83236ff50b3812 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-40202 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/f63723ca7d7623f9dae1990973cd158671f03c56 https://git.kernel.org/stable/c/348121b29594d42d1635648fd3ed31dfa25351d5 https://git.kernel.org/stable/c/53d6e403affbf6df2c859a0ea00ccfc1e72090ca https://git.kernel.org/stable/c/0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5 https://git.kernel.org/stable/c/b52da4054ee0bf9ecb44996f2c83236ff50b3812