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 C396314BFA2 for ; Thu, 1 May 2025 13:08:55 +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=1746104935; cv=none; b=lgnEOVqnKk4tgQEGH42yArTFAcsXiirTuIdcmE2aBdO6hoU6AwP3up9389mXNKknYeKdCQRL2sNhefqDw7kf34OuFitKswGTEbQ8wMIcKM/aKU4DxXL2XcrZklgEGxXMIpVkiuePR6ler52LBw3/cf7WbQ1B/oT2ljuKOyvfdeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104935; c=relaxed/simple; bh=5toLMdYhjRI7jibLxq5p3dKJfm6KoMkYBB6zVQyhbPk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ENhjNLZnyst+UckcDPbYeiEOzNtQMd1KLfuBKqImGJSrK4dnK22/5rrf0jt36PrQ0Fv+F4QQxnseSyrWswUT280kM9rv6m0FX0tDayI6lWRXpcNnfidOx/9yLk3nMkx1YoTCo+dsVVdEXUZjTGHM4lVEnX6q5Fp8UqYKIuiVSFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=olCeDHcI; 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="olCeDHcI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE894C4CEE3; Thu, 1 May 2025 13:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104935; bh=5toLMdYhjRI7jibLxq5p3dKJfm6KoMkYBB6zVQyhbPk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=olCeDHcIRDGSe9xzKzDB1nSnylOcVV8SPHA9izKI8QSheBypJ/C4jeB2NK7QDJWlF QBMmOqoLMWYYbOu72/jgpWuzEd9xF5a6iFRGd0tCMF4uAJ6Ji8kMpHXT6eYb+0eJD9 g/tSyawnsYIS0tbcFN/6U9BJcJvkIIebOc0L4fEM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37775: ksmbd: fix the warning from __kernel_write_iter Date: Thu, 1 May 2025 15:07:23 +0200 Message-ID: <2025050115-CVE-2025-37775-296d@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=2227; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2ExGo+t7itY/JLguUp0eKiJc+wVhnHaxUFZiXDgRHUY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCRcyrTp5PuKDs8ndVjtuJkw2PM3qFL75O3Pxyyq7a5 JKjq/wPdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFuUxzBVku/RdktvkQP9z btudXobxYX7XmxgWXG27epXb/sSsN3c/um7S3/NdU6xxKgA= 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 the warning from __kernel_write_iter [ 2110.972290] ------------[ cut here ]------------ [ 2110.972301] WARNING: CPU: 3 PID: 735 at fs/read_write.c:599 __kernel_write_iter+0x21b/0x280 This patch doesn't allow writing to directory. The Linux kernel CVE team has assigned CVE-2025-37775 to this issue. Affected and fixed versions =========================== Fixed in 6.1.135 with commit 44079e544c9f6e3e9fb43a16ddf8b08cf686d657 Fixed in 6.6.88 with commit b7ce8db490286c2e009758fa1416d66aeb333614 Fixed in 6.12.25 with commit 2a879da5c34a1e5d971e815d5b30f27eb6d69efc Fixed in 6.14.4 with commit 1ed343481ba6911178bc5ca7a51be319eafcc747 Fixed in 6.15-rc3 with commit b37f2f332b40ad1c27f18682a495850f2f04db0a 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-37775 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/vfs.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/44079e544c9f6e3e9fb43a16ddf8b08cf686d657 https://git.kernel.org/stable/c/b7ce8db490286c2e009758fa1416d66aeb333614 https://git.kernel.org/stable/c/2a879da5c34a1e5d971e815d5b30f27eb6d69efc https://git.kernel.org/stable/c/1ed343481ba6911178bc5ca7a51be319eafcc747 https://git.kernel.org/stable/c/b37f2f332b40ad1c27f18682a495850f2f04db0a