Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B35F9370D63 for ; Sat, 15 Aug 2026 06:22:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774933; cv=none; b=PHqXieMqBJnuHcuhFyU+d/FNIvHPOVAgDs2ljm5WKoms369+J1lHQXD5uiq1JQtY+YAJEWO8AsYt0/V0zJ/16SgIxZSFy/Yzl/zOExqVwxzRrEAy9q5aF0OxZ0H+WLGj8NJ11IZ5/+Je9uqCSZ20NiDjkEnioMNQGqhOwQeBzaE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774933; c=relaxed/simple; bh=ZIOBntvMw6jjeKkhgXGcl0vWYe6I/6LNo8al5F2UzRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rMtnP8ph9fpX5TmT6uVn82OkZKjAgSKEtjXkrOpbmWhL0rEin0hN2wGw1oR/wnsvFjg18DvPEZzXOdxaIH0wR/m59ObTe2UwS8M0SRYi9cQifj3Rin31/X/ktqUA/JoSxmE8X8+DQvnAZ0VMpcJLUrjOhn4czk8M8I6I8O/CifE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=prlZkGf4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="prlZkGf4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05EE11F000E9; Sat, 15 Aug 2026 06:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774932; bh=3ikBK02p4uLMtNLaL59oujcONWNXjhLK/eNMfZsr1ao=; h=From:To:Cc:Subject:Date:Reply-To; b=prlZkGf4z1SJVmBpraZ6hs+JzC/x1b8oYFbryGOHP2MzcgJ8ZbAoNQxSIe+jWbQ7x VnFVFIADWOWLEhnMFH86tSmuxA3q2JuE73DDo7+Il49eERI9zKACYMMKMKzSBNyAYq rrJxDL8LW3JFuHRHnEEcQWr3D6pKsOKjEmmcl3xM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72318: cifs: validate DFS referral string offsets Date: Sat, 15 Aug 2026 15:06:37 +0900 Message-ID: <2026081506-CVE-2026-72318-c46b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0Zr6O/hLBqEQKOuTF1nl5RrDOjl/ter5/Qmfd0dfnIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDPcmfn60VEthzh8lhoNLeXdU6T9yKD+05Xj66bt1B 27qlhxP64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ+KoyzNObuOdu1NS/YoZC LZVyAtPCLffyvmaY76Gc0xvsf2rj4pechfWvX505s2BTOwA= 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: cifs: validate DFS referral string offsets parse_dfs_referrals() validates that the response header and referral array fit in the received buffer, but each referral also contains string offsets supplied by the server. Those offsets are used to compute the DfsPath and NetworkAddress string pointers without checking whether they still point inside the response buffer. A malformed referral can therefore make the computed pointer exceed the end of the buffer. The resulting negative max_len is then passed to cifs_strndup_from_utf16(), and the non-Unicode path forwards it to kstrndup() as a size_t, allowing strnlen() to read out of bounds. Validate each string offset before deriving the string pointer. The Linux kernel CVE team has assigned CVE-2026-72318 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 6.1.178 with commit 76c607b9353d377b1d1b11db50e743eee0ccf658 Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 6.6.145 with commit d64b6be5740ce230aca184d8d224c75d9866045d Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 6.12.97 with commit 929a85932d14190988f1eafd6ee8cc68d66ace0b Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 6.18.40 with commit b784cd1c24d89bf71be2efe1e948ff7c03371e57 Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 7.1.5 with commit c37abc99bb3de3d3219ecef253d649f74117fd83 Issue introduced in 4.11 with commit 4ecce920e13ace16a5ba45efe8909946c28fb2ad and fixed in 7.2-rc3 with commit 027a84ac6b50c12ef767c15abfc58aa865820e9e 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-2026-72318 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/misc.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/76c607b9353d377b1d1b11db50e743eee0ccf658 https://git.kernel.org/stable/c/d64b6be5740ce230aca184d8d224c75d9866045d https://git.kernel.org/stable/c/929a85932d14190988f1eafd6ee8cc68d66ace0b https://git.kernel.org/stable/c/b784cd1c24d89bf71be2efe1e948ff7c03371e57 https://git.kernel.org/stable/c/c37abc99bb3de3d3219ecef253d649f74117fd83 https://git.kernel.org/stable/c/027a84ac6b50c12ef767c15abfc58aa865820e9e