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 157D6342507 for ; Tue, 16 Dec 2025 14:22:08 +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=1765894929; cv=none; b=Zo8TV9tqVZba8ryPMAQd9OGygPYmuo1p0ppyj/Ih+1Fw4ppylg1HgAQrNB0a1P+3Aq5V/C23s2m3JYn/6beEhgzxUi0rXjaQbd8a0Uen9ieubCy+dhdXhrIqbwz2h8QmeTkN7idG6ozyZnynf3oZVHS3QdCyMidr5s0dETJz0mc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765894929; c=relaxed/simple; bh=x6NGVmRbWOwFLoPbA0WFcV4p6IuDDGbIb4W/rpLqEYw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hkK47b7iwJvEXJqcjX/8GShfJqoT3XaCaU+d+injTplmVkDfphjjpDzkgZKA18zII7c5f6YxE+5RzG89Uj24IoFGQ24cFHAgxx1MJWOpKtWsQ5Jc1Nw/Ls8H6gN91jjEv43J5syf76R8QZGu4AIO1HYyV4++LR21i0g3V/HYDCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B8+Bt/f8; 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="B8+Bt/f8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B375DC4CEF5; Tue, 16 Dec 2025 14:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765894928; bh=x6NGVmRbWOwFLoPbA0WFcV4p6IuDDGbIb4W/rpLqEYw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=B8+Bt/f8EU0DXzYou9fViGOlFWS1/jqt8YVLcXUYW7mf+G1/kkG8qT7LcScuhKQSJ 7u0Mn2LP73EhyVtxwoCqPswcsV2bMB55By36/dTOqHiFBQXEcL6Gd0mNE4YhvgUKqG beXHrBb3STAp6RoX+qMPgn+LV/X+a0avY4h3ApMo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68246: ksmbd: close accepted socket when per-IP limit rejects connection Date: Tue, 16 Dec 2025 15:21:38 +0100 Message-ID: <2025121634-CVE-2025-68246-7c3d@gregkh> X-Mailer: git-send-email 2.52.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=2396; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mvpS5/r3AkI6t5ArgM80EL88uFNJXfyt05c/BdRdp3Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOWe8ex32126Pv6N++6IGhg7gWK8+EuBNbz37+VX/nD //C0ydud8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEzusyzLPLPJdZHfg/RChX XYbzeadM8Mp7Dxnm19xxjA/Y1eU4+3g5i2vAorTzaSf1AQ== 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: close accepted socket when per-IP limit rejects connection When the per-IP connection limit is exceeded in ksmbd_kthread_fn(), the code sets ret = -EAGAIN and continues the accept loop without closing the just-accepted socket. That leaks one socket per rejected attempt from a single IP and enables a trivial remote DoS. Release client_sk before continuing. This bug was found with ZeroPath. The Linux kernel CVE team has assigned CVE-2025-68246 to this issue. Affected and fixed versions =========================== Fixed in 6.1.159 with commit 7a3c7154d5fc05956a8ad9e72ecf49e21555bfca Fixed in 6.6.117 with commit 5746b2a0f5eb3d79667b3c51fe849bd62464220e Fixed in 6.12.59 with commit 4587a7826be1ae0190dba10ff70b46bb0e3bc7d3 Fixed in 6.17.9 with commit 35521b5a7e8a184548125f4530552101236dcda1 Fixed in 6.18 with commit 98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9 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-68246 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/transport_tcp.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/7a3c7154d5fc05956a8ad9e72ecf49e21555bfca https://git.kernel.org/stable/c/5746b2a0f5eb3d79667b3c51fe849bd62464220e https://git.kernel.org/stable/c/4587a7826be1ae0190dba10ff70b46bb0e3bc7d3 https://git.kernel.org/stable/c/35521b5a7e8a184548125f4530552101236dcda1 https://git.kernel.org/stable/c/98a5fd31cbf72d46bf18e50b3ab0ce86d5f319a9