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 8E2612EE276 for ; Fri, 25 Jul 2025 15:28:38 +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=1753457318; cv=none; b=G0XyWqtgalWM9MMt0juZ7sck5UHPHIB6IWEp21F5s17BHzwi8awJvahYOs5X7CvmgETYQ0Zg0YVEtKNbrRBt84W8LaOSn4KhdZfSeP7ZuOHQ7fw0tRxCxWflxqjsOppH1eE+fuJkldlrpglkVmUaZOU2P8o0SlZTUNPtmT7AD1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457318; c=relaxed/simple; bh=DxbGYi4O4OgPMe7s21wVAaVDOkVqGqH6ujZEgpfi9I8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bi3dMHN5UHqMIXuuGs3q+FU2nEIrGv5GwLNpLgUZ/cfwCPoW3gDHKgpOhk7goHq/lmywG06J4X7VB7N7f115BFod1NS8ReMOoVgJjRryrn6UqhKpi1hdiT+DWTTRjlrRzbYVzCcRerK2OMtRFIW8gaSIpG5Puj5czwGYQbjv0aQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DhJgh+bq; 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="DhJgh+bq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE7EDC4CEE7; Fri, 25 Jul 2025 15:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457318; bh=DxbGYi4O4OgPMe7s21wVAaVDOkVqGqH6ujZEgpfi9I8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DhJgh+bqtzhZiqLGUEyUiyhE3IeHPvXDw27juwIuU8XrF1CWjAElv0XLq9rViIOh/ yGe7LTCZ9GsBCkpPX2ZT2u5Zjsbb8cMUIj+oSxOFtNGZgrFIBVKeBPnrY5SsymLUgH C+s23fXPyrFbxnyc3nntmsht2pu9iGtvUkaFGJaQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38437: ksmbd: fix potential use-after-free in oplock/lease break ack Date: Fri, 25 Jul 2025 17:27:59 +0200 Message-ID: <2025072559-CVE-2025-38437-9752@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=2189; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5b5bN2IMHYQ+vP09nuZbvKfUX/9D0LUeYzzv5hr4vco=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi+pNzobYy+5nnHmX51bqe2+luK8sRTPONrL+VT++Z v4s3neMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCREneG+RH6Bmelb/3yyHqw bkG7z72jCt4JRQzz49ly7XJ+bd13L2/O3facq4H3c2eVAAA= 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: ksmbd: fix potential use-after-free in oplock/lease break ack If ksmbd_iov_pin_rsp return error, use-after-free can happen by accessing opinfo->state and opinfo_put and ksmbd_fd_put could called twice. The Linux kernel CVE team has assigned CVE-2025-38437 to this issue. Affected and fixed versions =========================== Fixed in 6.1.146 with commit e38ec88a2b42c494601b1213816d75f0b54d9bf0 Fixed in 6.6.99 with commit 97c355989928a5f60b228ef5266c1be67a46cdf9 Fixed in 6.12.39 with commit 815f1161d6dbc4c54ccf94b7d3fdeab34b4d7477 Fixed in 6.15.7 with commit 8106adc21a2270c16abf69cd74ccd7c79c6e7acd Fixed in 6.16-rc6 with commit 50f930db22365738d9387c974416f38a06e8057e 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-38437 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: fs/smb/server/smb2pdu.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/e38ec88a2b42c494601b1213816d75f0b54d9bf0 https://git.kernel.org/stable/c/97c355989928a5f60b228ef5266c1be67a46cdf9 https://git.kernel.org/stable/c/815f1161d6dbc4c54ccf94b7d3fdeab34b4d7477 https://git.kernel.org/stable/c/8106adc21a2270c16abf69cd74ccd7c79c6e7acd https://git.kernel.org/stable/c/50f930db22365738d9387c974416f38a06e8057e