Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D4102348C6D for ; Sat, 15 Aug 2026 06:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774110; cv=none; b=Mc+e+B7kHxjW7kXcId3R64OemRIb8jGi+6SFD8HvwtOWxtHrIthb9RaQAoAYJJGoyQI/Ms+UogYnlYpxx7A11NnDo+gvszN5iecASVuXFDgIScr3A6+OwZySRAKzFue3ZJO5PXVO70C0BjaH86DPTRbjfz833rzqjKiFIirPL4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774110; c=relaxed/simple; bh=Fqubj4KQXcV5SL+r54NvU6oZDJjgDh/nOh+DsE0j74w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SWmAD+mFDl+IhMmnu31jZ6CvqS9769V/isjL66SZV1uqOLU9xGFQUN3ZqUnMjUGQPsyGshx2nbl7JfE7OBSm5e8+C6+I1Wds7QUn+Hz+5lkNCa2+dUTN+Jod5rSqPSHlAkixKZjuPrXlxLVSN8gXMzLtOkyLGsj3mExbOQD+JsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uTTXgK29; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uTTXgK29" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B0301F000E9; Sat, 15 Aug 2026 06:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774108; bh=VdGPckDVSkZwfIXvomHHk3EnjDYu8XfxSUh5/KCP4r4=; h=From:To:Cc:Subject:Date:Reply-To; b=uTTXgK29H73Va5eMnp4hxGqxQpGCbNsurYVU3baX2DdmQv2VNCwfTf4qtKXfkvO5b RQuIqqrPDr5UO6GrBmJkMMLGOOHk6EH4qSrKWC2K93DPUfeuCES+Zxj4RQik5M32J9 EfTEzBnw+PsX8oO1S7JUIYebtgs8SNkm2C/ZLf8M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72040: ipmi: fix refcount leak in i_ipmi_request() Date: Sat, 15 Aug 2026 15:01:59 +0900 Message-ID: <2026081513-CVE-2026-72040-aa8f@gregkh> X-Mailer: git-send-email 2.55.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=3300; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nqRw+CxFPgFMqsg6uO6KLjqu5PZrgvXdzUBSLp5118c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDCu/3t7QK7d8zdUDi/U1za6a/FtvFB+6tEN7wvS/y 8weab8I7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ7FnGsGCmdKh1Xa3XueQX +z03Oj/6nONg1s+wYK/4jGfeWS5yX7t3zPj39JSHkMO72QA= 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 refcount leak in i_ipmi_request() When a caller provides a `supplied_recv` message to i_ipmi_request(), the function increments the user's `nr_msgs` reference count. If an error occurs later, the out_err cleanup path only frees the recv_msg if the function allocated it itself (i.e., !supplied_recv). In the supplied_recv case the cleanup is skipped, leaving the reference count elevated. The caller ipmi_request_supply_msgs() does not release the supplied_recv on error, so the reference is permanently leaked. Fix this by explicitly reverting the reference count operations when a supplied recv_msg with a valid user pointer is present in the error path: decrement nr_msgs and drop the user's kref. The Linux kernel CVE team has assigned CVE-2026-72040 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.113 with commit 348121b29594d42d1635648fd3ed31dfa25351d5 and fixed in 6.6.148 with commit 9409e18ffe7378d202efe1cf69989df9f67b0369 Issue introduced in 6.12.54 with commit 53d6e403affbf6df2c859a0ea00ccfc1e72090ca and fixed in 6.12.101 with commit e2a3b77df6aef031455dd83ea8ed4344b7dca1f9 Issue introduced in 6.18 with commit b52da4054ee0bf9ecb44996f2c83236ff50b3812 and fixed in 6.18.40 with commit f5c5065963024390ddad51bd455d1adc710de575 Issue introduced in 6.18 with commit b52da4054ee0bf9ecb44996f2c83236ff50b3812 and fixed in 7.1.5 with commit 0fd23994ec8c5436d9f0b50848deb87ed933e6b3 Issue introduced in 6.18 with commit b52da4054ee0bf9ecb44996f2c83236ff50b3812 and fixed in 7.2-rc1 with commit a3f3859cecacb64f18fd446271ece9a3b3f2d4de Issue introduced in 6.1.157 with commit f63723ca7d7623f9dae1990973cd158671f03c56 Issue introduced in 6.17.4 with commit 0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5 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-72040 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/9409e18ffe7378d202efe1cf69989df9f67b0369 https://git.kernel.org/stable/c/e2a3b77df6aef031455dd83ea8ed4344b7dca1f9 https://git.kernel.org/stable/c/f5c5065963024390ddad51bd455d1adc710de575 https://git.kernel.org/stable/c/0fd23994ec8c5436d9f0b50848deb87ed933e6b3 https://git.kernel.org/stable/c/a3f3859cecacb64f18fd446271ece9a3b3f2d4de