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 3BF1845009 for ; Sat, 4 Oct 2025 07:33:28 +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=1759563209; cv=none; b=Dh3qNxsOx1Az+vbujrt88y6cqsHgjhwUZgNH5um53ei9RoeDJoZuEZXXsu4iQ+shnoG9f1wLaN0zudRtSdwcmnCtjwtxybu86DcG3hb4gaG2nPOKerItUpDTko2Y6Fl90sd4s8UQZNeJO27Do+KRPYJK327ourTr68DlzfThiqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759563209; c=relaxed/simple; bh=k1GoIS067h+PsbW5UC3GI1KMhVyYbQvNmIsDbAXtk4k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WsfVmfrfDJwd+oi0cBdJpqVYENB4hRF7ILGyNgFL/p4omAczVT3NWl/OlhWXXOEigafJk5RTT+Us45thDPrWv9SfvKIMIGGyCouyBef8NcdlqN5xXIAdIpKY8HFbfZ9tzYuaKD1OqZ81ijhnfNCUK3cX5VRsHzNA/WnnzK0By6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hJ1jBoq0; 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="hJ1jBoq0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AACBC4CEF1; Sat, 4 Oct 2025 07:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759563208; bh=k1GoIS067h+PsbW5UC3GI1KMhVyYbQvNmIsDbAXtk4k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hJ1jBoq0zDrzecEIVv02Bz3EN7MJT+MHQ1dnztesavjCNoCifdlOtFwPLpLdC3P+E ELCgTLEvkHW1uzjQ23t6PLSw5esHsSILjZVU4SeRjD5lNNavGNVWmEO/+OYxvvHVse 96Nz+0Fzho7BcuyjdX4U/EiJpfJO2KHzx0q8WR1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39929: smb: client: fix smbdirect_recv_io leak in smbd_negotiate() error path Date: Sat, 4 Oct 2025 09:33:14 +0200 Message-ID: <2025100414-CVE-2025-39929-4308@gregkh> X-Mailer: git-send-email 2.51.0 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=2585; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P2KBqfBevH1YTQuh+hUDJSG+kgThtWo2pXnjnmvVwak=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPzu5adimu+ukCxsMGPy2MWrL8vr0682hl8NV2MXfuL M6/K3jndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE7uUwzGI+ZvjvyYswNjsu poL17YcfbrX42c2w4LLXvMJpmlOjy/e0529+r201b/vK2QA= 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: smb: client: fix smbdirect_recv_io leak in smbd_negotiate() error path During tests of another unrelated patch I was able to trigger this error: Objects remaining on __kmem_cache_shutdown() The Linux kernel CVE team has assigned CVE-2025-39929 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.1.154 with commit 3d7c075c878ac844e33c43e506c2fa27ac7e9689 Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.6.108 with commit e7b7a93879558e77d950f1ff9a6f3daa385b33df Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.12.49 with commit 922338efaad63cfe30d459dfc59f9d69ff93ded4 Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.16.9 with commit 0991418bf98f191d0c320bd25245fcffa1998c7e Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.17 with commit daac51c7032036a0ca5f1aa419ad1b0471d1c6e0 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-39929 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/client/smbdirect.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/3d7c075c878ac844e33c43e506c2fa27ac7e9689 https://git.kernel.org/stable/c/e7b7a93879558e77d950f1ff9a6f3daa385b33df https://git.kernel.org/stable/c/922338efaad63cfe30d459dfc59f9d69ff93ded4 https://git.kernel.org/stable/c/0991418bf98f191d0c320bd25245fcffa1998c7e https://git.kernel.org/stable/c/daac51c7032036a0ca5f1aa419ad1b0471d1c6e0