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 A7504383983 for ; Tue, 6 Oct 2026 10:27:49 +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=1791282470; cv=none; b=UOvGSEtldmanjsifnDFdYUeTUiFUNFHGoPHlJfDFUTpzHctyLOsVGbgjgzIRdRPQQ/to1k1tvxgCK1QMGDiBiUztZCk4mKNPjcnL8GOWiEJjJ3Jl28ZFx65hEdu2iOusCg/vY+1jihSQqI7DHsOXoUS+8pgfZ/VWAszOQwnunow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282470; c=relaxed/simple; bh=mfzNVmeaa4hWgXofHtsQKmv8v9wOAzxEtsUIhL15sAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GNzA+4wlpYoBijl84W5uMx35ecKpSSBZCOukRrG7Fz0+Z2i+QVlyeE7ChNvkISQkGNRF7mgLNdBbj9iQGAWjUN65LXYeCV/aj1GHFjOsBBGbT5cKJLmXNwZ1UIYcxTGVhWwsXUOiMLrlGr3mBthKG3nQ0pzgmJRVaHvRN8X7WWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GiyEjp3e; 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="GiyEjp3e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10FC11F000FF; Tue, 6 Oct 2026 10:27:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282469; bh=pg5EvN5xC9U/ap0yxyYrjAP1nHD5Kva6jjhZR0lve18=; h=From:To:Cc:Subject:Date:Reply-To; b=GiyEjp3eGku8iVoqvCbCF8i3SXOrHEe4j6OA3oL+iP/Wl0hyloPMRLiIkAwM8N3KV 2AQTlGEqoFwTRAmwZI5HvO7BIW9ZnSSX10WMSotp8BnJXv9js/0ByUGVIyT2l2QsAK dDZ2TVq93FA/yjqhyj4OciWiJD8rB8kFCWJt3zsc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98318: smb: client: validate absolute native symlink targets before NT fixups Date: Tue, 6 Oct 2026 10:46:59 +0200 Message-ID: <2026100613-CVE-2026-98318-f8c2@gregkh> X-Mailer: git-send-email 2.56.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=2595; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ln4Di4mi38hww3vu3zkKDLH0JsMixJEBfD9h7atDlA4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtkrmNn96JbGmIMLQ2WjHvfd9DRt7brkusGr8Ldyt+ XGvztf1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtP0M8z1Mf99VWiIXzXGk b49K1mfthQlv+hhms+wO7i/UuHt5XlTsFL+TB5zOuRxyAQA= 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: smb: client: validate absolute native symlink targets before NT fixups With symlinkroot unset, an absolute target is copied without conversion to an NT drive path. Later code still assumes an NT prefix is present when modifying the target and calculating the print name length. For "/ab", this causes two failures: sym[5] and path[5] are written past their allocations, and plen -= 2 * poff subtracts an assumed 8-byte prefix from a 6-byte UTF-16 target, wrapping u16 plen to 65534. That underflow causes another overflow: memcpy() copies 65534 bytes into a 24-byte buffer. A user with write access to a mounted share can trigger these bugs with default settings. Validate the NT drive prefix, including an ASCII drive letter, before accessing fixed offsets or subtracting the prefix length. The Linux kernel CVE team has assigned CVE-2026-98318 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 3363da82e02f1bddc54faa92ea430c6532e2cd2e and fixed in 7.2.8 with commit 6913ff607c2bc8694193e1fcc40bf16d75f35f16 Issue introduced in 6.16 with commit 3363da82e02f1bddc54faa92ea430c6532e2cd2e and fixed in 7.3-rc4 with commit 23c240d9509e15f72e4112fc95f0160ab32ec430 Issue introduced in 6.15.6 with commit b6ea7b6c6be65149ab6b8e37a9dd1671f76add1b 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-98318 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/reparse.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/6913ff607c2bc8694193e1fcc40bf16d75f35f16 https://git.kernel.org/stable/c/23c240d9509e15f72e4112fc95f0160ab32ec430