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 D474A274B4A for ; Thu, 4 Sep 2025 15:35: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=1757000149; cv=none; b=Joa2TIhF5e4Xkhi9hflUrbj4mYY2Zi7dPE5CvVcpYdnD07rm2a/bpX/A9CfOiMd05vF/rTrAE7EjNXEklwpnnnYUPDObhyE8neJE+bVOoxaOUKWgYuJJygfxtFKyrBWcj/QareqaYt0uJGWpJQ2FKjCxtREO4sx21EizD7vOo9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000149; c=relaxed/simple; bh=u5lj5IREn8IWUJ42mEwJNa4HSaDx8j7ZjT9wvuG6g2k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Wx9HSAuB9RI9IhhoL5DhzRuuOhttxSYxoM7eX/x5l9WSSc1dI6NS+eopqT9VsEhLeBwDAMDLtQyZC23mYMas7qoRlqKXEo8URg+n60CquK0Buh/S/w55ogRGzOO9z1KjOWyiLZXDXTEy2T8mrc5Q/qnBNMYmSxH7va2yOUesBCQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f8+H008X; 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="f8+H008X" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55B89C4CEF0; Thu, 4 Sep 2025 15:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000149; bh=u5lj5IREn8IWUJ42mEwJNa4HSaDx8j7ZjT9wvuG6g2k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f8+H008Xp8v7dLyv7HN0M6xTYjCcFLH89wmyuPyE9VFMcv8JsIWtcp6qGhURF8Zjt 2U4QJFsD95Zu1eb6QTr5h2CrRAEwCp57OoQ+8LvyZN4UmhxUPhiHIyQ9Vnu4b9cm4b g+LAeBxMv/HlZAqLQwBAoTNXYkFLEbmtcOafwWPE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38728: smb3: fix for slab out of bounds on mount to ksmbd Date: Thu, 4 Sep 2025 17:33:33 +0200 Message-ID: <2025090402-CVE-2025-38728-191d@gregkh> X-Mailer: git-send-email 2.51.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=4048; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8d0x9nbG2wOxGRhElt+7eKBrkBFASpQapiEfyJoQ99I=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N+o7fN355Nee5ECzBXYs3yob3xfFbZ3I3taW07l6j Tf3z6efO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi7CwMCy4cdFZjDX/5VP3J UXP7aa8vurjt2cswPyM4wO5oxeTYN0VqF7hjVf1UVnm7AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: smb3: fix for slab out of bounds on mount to ksmbd With KASAN enabled, it is possible to get a slab out of bounds during mount to ksmbd due to missing check in parse_server_interfaces() (see below): BUG: KASAN: slab-out-of-bounds in parse_server_interfaces+0x14ee/0x1880 [cifs] Read of size 4 at addr ffff8881433dba98 by task mount/9827 CPU: 5 UID: 0 PID: 9827 Comm: mount Tainted: G OE 6.16.0-rc2-kasan #2 PREEMPT(voluntary) Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE Hardware name: Dell Inc. Precision Tower 3620/0MWYPT, BIOS 2.13.1 06/14/2019 Call Trace: dump_stack_lvl+0x9f/0xf0 print_report+0xd1/0x670 __virt_addr_valid+0x22c/0x430 ? parse_server_interfaces+0x14ee/0x1880 [cifs] ? kasan_complete_mode_report_info+0x2a/0x1f0 ? parse_server_interfaces+0x14ee/0x1880 [cifs] kasan_report+0xd6/0x110 parse_server_interfaces+0x14ee/0x1880 [cifs] __asan_report_load_n_noabort+0x13/0x20 parse_server_interfaces+0x14ee/0x1880 [cifs] ? __pfx_parse_server_interfaces+0x10/0x10 [cifs] ? trace_hardirqs_on+0x51/0x60 SMB3_request_interfaces+0x1ad/0x3f0 [cifs] ? __pfx_SMB3_request_interfaces+0x10/0x10 [cifs] ? SMB2_tcon+0x23c/0x15d0 [cifs] smb3_qfs_tcon+0x173/0x2b0 [cifs] ? __pfx_smb3_qfs_tcon+0x10/0x10 [cifs] ? cifs_get_tcon+0x105d/0x2120 [cifs] ? do_raw_spin_unlock+0x5d/0x200 ? cifs_get_tcon+0x105d/0x2120 [cifs] ? __pfx_smb3_qfs_tcon+0x10/0x10 [cifs] cifs_mount_get_tcon+0x369/0xb90 [cifs] ? dfs_cache_find+0xe7/0x150 [cifs] dfs_mount_share+0x985/0x2970 [cifs] ? check_path.constprop.0+0x28/0x50 ? save_trace+0x54/0x370 ? __pfx_dfs_mount_share+0x10/0x10 [cifs] ? __lock_acquire+0xb82/0x2ba0 ? __kasan_check_write+0x18/0x20 cifs_mount+0xbc/0x9e0 [cifs] ? __pfx_cifs_mount+0x10/0x10 [cifs] ? do_raw_spin_unlock+0x5d/0x200 ? cifs_setup_cifs_sb+0x29d/0x810 [cifs] cifs_smb3_do_mount+0x263/0x1990 [cifs] The Linux kernel CVE team has assigned CVE-2025-38728 to this issue. Affected and fixed versions =========================== Fixed in 6.1.149 with commit 9bdb8e98a0073c73ab3e6c631ec78877ceb64565 Fixed in 6.6.103 with commit a0620e1525663edd8c4594f49fb75fe5be4724b0 Fixed in 6.12.43 with commit 8de33d4d72e8fae3502ec3850bd7b14e7c7328b6 Fixed in 6.15.11 with commit a542f93a123555d09c3ce8bc947f7b56ad8e6463 Fixed in 6.16.2 with commit f6eda5b0e8f8123564c5b34f5801d63243032eac Fixed in 6.17-rc2 with commit 7d34ec36abb84fdfb6632a0f2cbda90379ae21fc 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-38728 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/client/smb2ops.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/9bdb8e98a0073c73ab3e6c631ec78877ceb64565 https://git.kernel.org/stable/c/a0620e1525663edd8c4594f49fb75fe5be4724b0 https://git.kernel.org/stable/c/8de33d4d72e8fae3502ec3850bd7b14e7c7328b6 https://git.kernel.org/stable/c/a542f93a123555d09c3ce8bc947f7b56ad8e6463 https://git.kernel.org/stable/c/f6eda5b0e8f8123564c5b34f5801d63243032eac https://git.kernel.org/stable/c/7d34ec36abb84fdfb6632a0f2cbda90379ae21fc