From mboxrd@z Thu Jan 1 00:00:00 1970 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 AD25E1779B8 for ; Thu, 27 Feb 2025 02:13:25 +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=1740622405; cv=none; b=Qa0Bs+iAsICxmhtVboY3TBl8qOShPste/RTC4Cr159jKPhtbkBNucVMxJk2zdJwB6TocbSfrD/Ec8RcV1EXBnNe/cm7Ht3RtMxOrEIc83blQCl4qYmJAYe5DBmzpH1X41Y9hFVWUrovyEY15AxXpKg/3yItUFohAPJP5Clnwm9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622405; c=relaxed/simple; bh=Uc1VF/mMFUK1HI8LyRxQu/Q2XWTJIMvGNxLG/gmz1dk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t0vetJpwgdKq7GkGBSBEh55h7AAnxQtnOOFcRc46Dy8kz2ygW6JQXI8vfYOUyc8aexkT07Uf4BE/IoJR0qWfbYhf+Z/9tARebej5NMbNLZRP5Lhc67MwItmzJ2xR3iYCF0cCAdbxkyda5NLwGspMuN+sAJrG5wM4YkMJcE+WWfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qp68FYtc; 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="Qp68FYtc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B56C4CED6; Thu, 27 Feb 2025 02:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622405; bh=Uc1VF/mMFUK1HI8LyRxQu/Q2XWTJIMvGNxLG/gmz1dk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Qp68FYtc5v5pHKtwnS7ZgYFk9cwMDt3Vy1T5gswQzteUxuKVCpGB3NeoCbvhSD7l5 rio1hckRFslBZKFh7kuBjDR9QmgoScu/XiCxJpKxRmIs1kGwr3180qANjuiP8855x+ ThanFEOIIRWqexQFUoYjArCntlxBgA1rb7kADiOU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21748: ksmbd: fix integer overflows on 32 bit systems Date: Wed, 26 Feb 2025 18:11:30 -0800 Message-ID: <2025022601-CVE-2025-21748-c980@gregkh> X-Mailer: git-send-email 2.48.1 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=2632; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Uc1VF/mMFUK1HI8LyRxQu/Q2XWTJIMvGNxLG/gmz1dk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T271eCn/7F5z4PXsfV/9zfWf1NnenB15b8bfjv4zA rlxLx/zd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDjQwzC9PO6P3PtHQNS8v r3nz1tVsfR8X9jHMr7oqY1z8x9Vv9RGVqnvfvLY8XBz+EQA= 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 integer overflows on 32 bit systems On 32bit systems the addition operations in ipc_msg_alloc() can potentially overflow leading to memory corruption. Add bounds checking using KSMBD_IPC_MAX_PAYLOAD to avoid overflow. The Linux kernel CVE team has assigned CVE-2025-21748 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.1.129 with commit 760568c1f62ea874e8fb492f9cfa4f47b4b8391e Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.6.78 with commit 82f59d64e6297f270311b16b5dcf65be406d1ea3 Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.12.14 with commit b4b902737746c490258de5cb55cab39e79927a67 Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.13.3 with commit ecb9947fa7c99a77b04d43404c6988a0d326e4a0 Issue introduced in 5.15 with commit 0626e6641f6b467447c81dd7678a69c66f7746cf and fixed in 6.14-rc1 with commit aab98e2dbd648510f8f51b83fbf4721206ccae45 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-21748 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_ipc.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/760568c1f62ea874e8fb492f9cfa4f47b4b8391e https://git.kernel.org/stable/c/82f59d64e6297f270311b16b5dcf65be406d1ea3 https://git.kernel.org/stable/c/b4b902737746c490258de5cb55cab39e79927a67 https://git.kernel.org/stable/c/ecb9947fa7c99a77b04d43404c6988a0d326e4a0 https://git.kernel.org/stable/c/aab98e2dbd648510f8f51b83fbf4721206ccae45