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 C4165446D9 for ; Wed, 1 May 2024 05:22:43 +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=1714540963; cv=none; b=FM1mZLMLoqc6LzjNNNLGniD4IlR+rI+g5JyxFBMeuLwHyeqMqYcd9aFl3nxCo7HKrOvUTq0T3Poqn9hq8WYh1gfT1D68K1dZ8Q3SrqCo/FoSEPVBNHWWicaeglLAbso8SogWyLfmGKm00x1yU6uNZOw7oql24zLSDFjLTb4bgFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540963; c=relaxed/simple; bh=3HRxeuaMuN770EHRwsdDzT+Z5bhgsTCO1dummOS3rBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BQ0r2w1KATQ+UbM2mTxpfgj4F/uRVOIAdqTJyMeT7VKnguahWPFMrqVVCvZnwMTtilO3HARwlYzQsietifV8UdfdSXtNTk/nPm7JAKOonMEXe/OcYyOtwZi7m1RDfF6J9cOI70z5wrKyw634pz0azw1Y7bxRdZhlQD6ymxQTnDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y32rzLTD; 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="y32rzLTD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C75BC113CC; Wed, 1 May 2024 05:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540963; bh=3HRxeuaMuN770EHRwsdDzT+Z5bhgsTCO1dummOS3rBg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y32rzLTDfMt+ed2J2OKRrB5BbGTjgYDFCNr78xjoZNsT1ucDpImLKkAuI14dkF6JH 2Nhpp7+N4zeglUJkY9Dul4xNgvRknvmXcfbn6AMKPw3MWNu3wNOnZRwV9Qc6llLGaf dTlPpBSRq/xIAF8MMw54Qxg2KeLa0zK31u84PkhQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26952: ksmbd: fix potencial out-of-bounds when buffer offset is invalid Date: Wed, 1 May 2024 07:21:42 +0200 Message-ID: <2024050127-CVE-2024-26952-7f65@gregkh> X-Mailer: git-send-email 2.44.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=1889; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3HRxeuaMuN770EHRwsdDzT+Z5bhgsTCO1dummOS3rBg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF8OZ92xls9x3/hLH7W/f+JiLLtzOMTmn69d5RH9Pr 2LmXObZHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjAR7kcMcyWL+C2OC7h8OLg7 cVPo3967IddnlDAsuLDc5rX+t15JjrNvhCM29CRcXKDoCgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix potencial out-of-bounds when buffer offset is invalid I found potencial out-of-bounds when buffer offset fields of a few requests is invalid. This patch set the minimum value of buffer offset field to ->Buffer offset to validate buffer length. The Linux kernel CVE team has assigned CVE-2024-26952 to this issue. Affected and fixed versions =========================== Fixed in 6.7.12 with commit 2dcda336b6e8 Fixed in 6.8.3 with commit 0c5541b4c980 Fixed in 6.9-rc1 with commit c6cd2e8d2d9a 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-26952 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/smb2misc.c 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/2dcda336b6e80b72d58d30d40f2fad9724e5fe63 https://git.kernel.org/stable/c/0c5541b4c980626fa3cab16ba1a451757778bbb5 https://git.kernel.org/stable/c/c6cd2e8d2d9aa7ee35b1fa6a668e32a22a9753da