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 86D261D554 for ; Tue, 19 Nov 2024 01:33:49 +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=1731980029; cv=none; b=EDDK/NPb6lTUh90CCmSv+merHVa8tWqnc4vtXbbsYUFZ/yohgY81llwmk6wcEmi1VRNGE+/alm6eC2zIFq8DnEJhSvBwyYI0+Ysvh4BjLmU1HBYp3ay+zcKy8OSbvfhkAqXL5p4IBfrhtkfF9lb8lN8NxbP/3g1SGyLMzC8pe6g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980029; c=relaxed/simple; bh=oN6voWwBtEZKHZZoIX8W/REcLEf2MjZ3FQAUMRu3HPM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=anHdAIbaCehp2X9iLzufvvq8iv6rvL2I2HTndVU447gHZQsljRkZ4nnLH37t6Opfe24YzNjRtgxZRn/1A0a6MZNNUSezp9W+Z5oQ+8CmE/nd4zNkVLJF7+qxyJwiwN0P0beIyFCLUGQ5mi76YMRXcEtiu7V8zlEcjrNp9T65L38= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZFmUL7W9; 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="ZFmUL7W9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42D5BC4CECC; Tue, 19 Nov 2024 01:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980029; bh=oN6voWwBtEZKHZZoIX8W/REcLEf2MjZ3FQAUMRu3HPM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZFmUL7W9Gh9j0ZOVUdSHp2ovfbIasU9YGcxTbMrpzSnYf0JkcsOziNMhV9czmlNsk 5WFnpUHBPRjH16U2vaVYpfuHjXyQNekCN3yWBxYNSsPTVlwuj7eVEyocek34VDwFRg M1O717FjKL2n8ARVQ2xu+hMve+rx3b/dSyXuJwjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50285: ksmbd: check outstanding simultaneous SMB operations Date: Tue, 19 Nov 2024 02:32:40 +0100 Message-ID: <2024111946-CVE-2024-50285-6013@gregkh> X-Mailer: git-send-email 2.47.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=2116; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oN6voWwBtEZKHZZoIX8W/REcLEf2MjZ3FQAUMRu3HPM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr/ab2n749FTP+YmL+MzPp0xS35VW/fcIYHpglMvKE X7IVPlNRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkoQPDglvs0uftp0ptEP5+ +px60aRF/9r2n2JYcG79W5fKqAV2ykkzCmWeyWmV3/64HQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: check outstanding simultaneous SMB operations If Client send simultaneous SMB operations to ksmbd, It exhausts too much memory through the "ksmbd_work_cacheā€. It will cause OOM issue. ksmbd has a credit mechanism but it can't handle this problem. This patch add the check if it exceeds max credits to prevent this problem by assuming that one smb request consumes at least one credit. The Linux kernel CVE team has assigned CVE-2024-50285 to this issue. Affected and fixed versions =========================== Fixed in 6.6.61 with commit 1f993777275c Fixed in 6.11.8 with commit e257ac6fe138 Fixed in 6.12 with commit 0a77d947f599 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-2024-50285 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/connection.c fs/smb/server/connection.h fs/smb/server/server.c fs/smb/server/smb_common.c fs/smb/server/smb_common.h 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/1f993777275cbd8f74765c4f9d9285cb907c9be5 https://git.kernel.org/stable/c/e257ac6fe138623cf59fca8898abdf659dbc8356 https://git.kernel.org/stable/c/0a77d947f599b1f39065015bec99390d0c0022ee