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 A999C20B7EA for ; Tue, 1 Apr 2025 15:42:44 +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=1743522164; cv=none; b=cgnX88GlaoPi/e3EbvD6tk1KsmOz2Wt7m/hPBndGC7//GmM7P5PPZeNyLD3qtQbHBxN8C+fw9GnJ9I+VmGR0I2VZC9plqHbvrY2n5+/6+ta2ZAMQTaMS3AMVBhXoJwhpCl/6wGvUoXuvsPtSajPIOGGThx2WHrKWNOPZuxfhmcM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522164; c=relaxed/simple; bh=ZLboJroifzwj2HyeZZB7vEZGKaD8BDIHi6/dgAxtO7w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EP0WHdyOHH7Jol7291nY+VMdPoovEmArWexVfzlHUwDAE34WiPrMRQT7hKZ+295ywgtkor3c81r+7vSlbXEDzt9sFhYoIFu+SYhics5Adfolc+/1ON41zUXyhQuteyZfqTjxSgqqtPqRqUABLw9hOG6+e4jVcpWfZFs/5RO0q2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ng3DdjQx; 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="Ng3DdjQx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 460AAC4CEE4; Tue, 1 Apr 2025 15:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522164; bh=ZLboJroifzwj2HyeZZB7vEZGKaD8BDIHi6/dgAxtO7w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ng3DdjQxf9QnMuAUp6+6/19yGbPPjGtOax62bkh16y4N6dwQxTYxVDn+Hgyz36oAs 67dKjtOYExAJMXDvibbaynEJW38dQ8xlNK0Y3jeWjyxGNNEiIfgK0MIf2vg+6EB5W3 ia3+6d93my37yLv80d7lEwJZhVLiqFBmJAL+N5Ts= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21947: ksmbd: fix type confusion via race condition when using ipc_msg_send_request Date: Tue, 1 Apr 2025 16:40:11 +0100 Message-ID: <2025040136-CVE-2025-21947-fcc5@gregkh> X-Mailer: git-send-email 2.49.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=2451; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZLboJroifzwj2HyeZZB7vEZGKaD8BDIHi6/dgAxtO7w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOHb0RksZT1fN9G5mmCmWXFcU+SCu7d++YMHCEvaua fFfWqZ2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQ27WSYn39SwFeV/eEd+axp 03d8mPB9C0/dBob5VYvt/j4++SI/rVvunXf2Rs87N+3XAQA= 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 type confusion via race condition when using ipc_msg_send_request req->handle is allocated using ksmbd_acquire_id(&ipc_ida), based on ida_alloc. req->handle from ksmbd_ipc_login_request and FSCTL_PIPE_TRANSCEIVE ioctl can be same and it could lead to type confusion between messages, resulting in access to unexpected parts of memory after an incorrect delivery. ksmbd check type of ipc response but missing add continue to check next ipc reponse. The Linux kernel CVE team has assigned CVE-2025-21947 to this issue. Affected and fixed versions =========================== Fixed in 6.1.131 with commit 6321bbda4244b93802d61cfe0887883aae322f4b Fixed in 6.6.83 with commit 76861630b29e51373e73e7b00ad0d467b6941162 Fixed in 6.12.19 with commit 3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea Fixed in 6.13.7 with commit 1e8833c03a38e1d5d5df6484e3f670a2fd38fb76 Fixed in 6.14 with commit e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2 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-21947 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/6321bbda4244b93802d61cfe0887883aae322f4b https://git.kernel.org/stable/c/76861630b29e51373e73e7b00ad0d467b6941162 https://git.kernel.org/stable/c/3cb2b2e41541fe6f9cc55ca22d4c0bd260498aea https://git.kernel.org/stable/c/1e8833c03a38e1d5d5df6484e3f670a2fd38fb76 https://git.kernel.org/stable/c/e2ff19f0b7a30e03516e6eb73b948e27a55bc9d2