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 2187A1A83FB for ; Tue, 20 May 2025 16:02:17 +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=1747756938; cv=none; b=XInd18um504pIiTK0rlqqL3/ETmIbtKbS1FRrTxoNN71VUu6zrm4JOzJ3qB1jfYJbUpBo3OKyp2aP7/dQFRUdvOLckq9/W2AfKecrx/7nFuizq6RRTsjgInobNVGmYEGgpLxPm7qU3b0Y+/ivxntGA8nMX7rinySjQEsWSPSUXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756938; c=relaxed/simple; bh=f5imZOUwYg7VHgdOg5LZ5XRK2GfjO6ws4LnItWbdSjM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t9qgHY5WwnYVHLzdD628uBN1LHLY7fKvio2kWMJ+XY4XJ+4tuP93xDJyAAVms+FuCifWq8Le0Ap6n0hpeo8sYWM5ZOC5E/mEWUNGem/Xg+p+LPEcd+8DBA09j4lzGkLZO/n2CXEzN7jBrPfCdgfZjl1266fdH9bAe+nAJqs+NGc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sXhAMEts; 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="sXhAMEts" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19A80C4CEE9; Tue, 20 May 2025 16:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756937; bh=f5imZOUwYg7VHgdOg5LZ5XRK2GfjO6ws4LnItWbdSjM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sXhAMEtsKYi9lORF5wYHuC72tBZ6NBRTRFsXxb9yAl2LO1fGZnf2TA3YSJw9JrN60 r5GLIECRxS2pgC9JBxNvHHhQbe0GiOL6fbSlTYv+1SHNtqN2dnXyC5vMNnuk4SZZiR rbON6vQG1aqVzZP0BK3jSh/fmifiEWhQy32ZgpVs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37956: ksmbd: prevent rename with empty string Date: Tue, 20 May 2025 18:02:10 +0200 Message-ID: <2025052002-CVE-2025-37956-a6aa@gregkh> X-Mailer: git-send-email 2.49.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=2082; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RC9mkYBBFNYp4tX+vWYRFGLaf9I2qVwCO+euP/9Jvt0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6y6u3OOwxOXlgTvnPmuePJCM5lr068rmz6ArvrnmZy /U/ftg2ryOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcjWPYX5huk2Dkmta9tED Btf2Leny3Nk5/QnD/LyrCb/9JhopTu2IPVez4C3TRim3IAA= 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: prevent rename with empty string Client can send empty newname string to ksmbd server. It will cause a kernel oops from d_alloc. This patch return the error when attempting to rename a file or directory with an empty new name string. The Linux kernel CVE team has assigned CVE-2025-37956 to this issue. Affected and fixed versions =========================== Fixed in 6.6.91 with commit 6ee551672c8cf36108b0cfba92ec0c7c28ac3439 Fixed in 6.12.29 with commit c57301e332cc413fe0a7294a90725f4e21e9549d Fixed in 6.14.7 with commit d7f2c00acb1ef64304fd40ac507e9213ff1d9b5c Fixed in 6.15-rc6 with commit 53e3e5babc0963a92d856a5ec0ce92c59f54bc12 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-37956 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/6ee551672c8cf36108b0cfba92ec0c7c28ac3439 https://git.kernel.org/stable/c/c57301e332cc413fe0a7294a90725f4e21e9549d https://git.kernel.org/stable/c/d7f2c00acb1ef64304fd40ac507e9213ff1d9b5c https://git.kernel.org/stable/c/53e3e5babc0963a92d856a5ec0ce92c59f54bc12