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 7A4E643ADE for ; Wed, 1 May 2024 05:22:54 +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=1714540974; cv=none; b=lpvEPxg8BmCH/iaJof3aXI9bujyAQ7d1bcIokuADnFws72EfAUHfL4WugaOeMdmP+A36TkJDng5JL5w6hv2WoPYzlcCkMrckJE0MUhcRDmGMKdu4HI8KpLSbgw1z/lhZtY4umMd1Gm0XW3ygcuMMRM66Gu37Y1aZcEkK8txsoRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714540974; c=relaxed/simple; bh=wXKejW0eRrJir/OVGN+AclAZ6wZmHPfzvdQIqQr7kcI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G35MM0z1NnPEJJikGgq53hJMr3MJ8mmydIhw8lCSsVTa+IeEOKFJaJ3z9erIytiX08oH10OfPgeWVh0IMAXsqTQfK1vDG4vV1Z9bOOR8YPZkOHyxej78Fu83xg5E+Mcq05/uouYixwF6fCxXGFkzKzqu1PM49RxdE08FqafLvWg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=06daRInZ; 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="06daRInZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03317C4AF19; Wed, 1 May 2024 05:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714540974; bh=wXKejW0eRrJir/OVGN+AclAZ6wZmHPfzvdQIqQr7kcI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=06daRInZjiGDLybJfXWSdN3EaTx8uiO72EwiFIcmTpMmqhZTgApoZmXKfmVpNbvhG OfEOah4YFwPAU19TqPHlh6mjwHfslHIhLrGiTwOz42NXOQ+jWxTD7u30Q97JCYxcZX jUkoztPejnuNwjwIkntliooBCmzp+Bs7zyGf/SeI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26954: ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16() Date: Wed, 1 May 2024 07:21:44 +0200 Message-ID: <2024050128-CVE-2024-26954-18d5@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=1922; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wXKejW0eRrJir/OVGN+AclAZ6wZmHPfzvdQIqQr7kcI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGFyPePkxd8+SADOOGunrGiPr3JqGTrmSbJzc/Oizm+ fcD19y9HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbXMZZrPvuNCUIXziylfR Scb+/PPld1z8NINhrqB7XqC/4YGtKilLjt1b+jrh2YyDsQA= 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 slab-out-of-bounds in smb_strndup_from_utf16() If ->NameOffset of smb2_create_req is smaller than Buffer offset of smb2_create_req, slab-out-of-bounds read can happen from smb2_open. This patch set the minimum value of the name offset to the buffer offset to validate name length of smb2_create_req(). The Linux kernel CVE team has assigned CVE-2024-26954 to this issue. Affected and fixed versions =========================== Fixed in 6.7.12 with commit 3b8da67191e9 Fixed in 6.8.3 with commit 4f97e6a9d62c Fixed in 6.9-rc1 with commit a80a486d72e2 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-26954 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 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/3b8da67191e938a63d2736dabb4ac5d337e5de57 https://git.kernel.org/stable/c/4f97e6a9d62cb1fce82fbf4baff44b83221bc178 https://git.kernel.org/stable/c/a80a486d72e20bd12c335bcd38b6e6f19356b0aa