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 E7F5A48EBCE for ; Fri, 25 Sep 2026 10:24:37 +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=1790331879; cv=none; b=f6XB+aqWsYG/iCt+C70GLQtoVLetmcKhH3yh28pxs5iNWz/KAFe+Df2wjUfMKr0U4tm15ReCn8Q6Z0E+lUzrU66jrng7RSaLvdJgRplTfEqW+5citLc3dHBMLKr50fccsBmT3syMc6lSe84Mz8Y/oaMJNnupnXzrqFc1YDBxwYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790331879; c=relaxed/simple; bh=V8AEwa+7A0pOYEkdpka6PSUfZGqq/jJEleTyFlr4bnc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OVkPoeVnaiEd2qDMq+4gQhWNY0ytLx5NosjPU3h5HPZLmF4KqmwG0HJkbgism+kl6W3tyeAIYbA/Vp7ZNl0HHLDcSwtk1OFO+L6IyvJx8vrWHnLFLM/QW2G5KHDXYyjZTROKKTsMmy/7uV2GciJSv1NANqHB7NQ26/rizGhxLF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DoAqaIF0; 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="DoAqaIF0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F33A21F000FF; Fri, 25 Sep 2026 10:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790331877; bh=vmGt1MyyRkVisCXP8beI00mvKmWbdzyj7GMkxDw2RW4=; h=From:To:Cc:Subject:Date:Reply-To; b=DoAqaIF0XocZjvdr1+oQEOAP+rS8VnCpfRrDWuc6BLCkKPXE16dRSBc2CslOgOBw1 GVIgXlymyMH+ONLHT5HLSrxNZqQohQ3AU89u//Fn+RaMGReN0S14W2b+ho8q7IlyAn FfFCT9oNv/RikrqujaMV19ts3ZTPejDJuVpGp758= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97563: smb: client: reject out-of-bounds DataOffset in CIFSSMBRead() Date: Fri, 25 Sep 2026 12:22:23 +0200 Message-ID: <2026092553-CVE-2026-97563-7f55@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=3305; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2j/W7KvH0nCf8vBSXMVc0qYWvTfeDFRT3/Gu+TCkOPU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvB0PdPew9rKppR5OWbVm6gSTjqtF2vYLdq+/o3m8I ffs/EcbOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAicUEMc6V6kg9Eb2xMEZC6 0SVtffN227UWEYZ5Fhb/3rg7s2yx3lm+5OXh4+eY5lk9AwA= 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: reject out-of-bounds DataOffset in CIFSSMBRead() The SMB1 synchronous read helper CIFSSMBRead() validates the server's DataLength against CIFSMaxBufSize and the caller's count, but never validates DataOffset. The copy source is formed as &pSMBr->hdr.Protocol + le16_to_cpu(pSMBr->DataOffset) and memcpy()'d for DataLength bytes with no check that the [DataOffset, DataOffset + DataLength) range lies within the response actually received from the server. A malicious or compromised SMB1 server can return a response carrying an in-range DataLength and a large DataOffset, driving the source pointer past the end of the response buffer. The memcpy() then copies adjacent kernel heap into the caller's read buffer (information disclosure), or reads unmapped memory and oopses (denial of service). SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Both DataOffset and the received response length recorded in rsp_iov.iov_len are relative to the start of the SMB header, so reject the response unless DataOffset + DataLength fits within that length, using overflow-safe arithmetic, before forming the source pointer. The response length has been validated by the previous patch, so the DataOffset and DataLength fields can be read safely here. While here, make data_length unsigned. It holds a length derived from unsigned on-the-wire fields and is only ever compared against unsigned quantities; print it with %u accordingly, and add __func__ to the cifs_dbg() calls in this function. The Linux kernel CVE team has assigned CVE-2026-97563 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.7 with commit 667feba13e78d16393aacb15869f70970f422227 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc3 with commit 5be5bdda5863eacc964b609ba927764f253431b3 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-97563 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/cifssmb.c fs/smb/client/trace.h 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/667feba13e78d16393aacb15869f70970f422227 https://git.kernel.org/stable/c/5be5bdda5863eacc964b609ba927764f253431b3