Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794065623; b=LNCaujk/pxs1DmTwk0D6YbKq+/fWtSWau75ZzOm5ozg1fa+lH/jpgHHXYxgARe1i4RQs v9VDfHwmM68IWUObmQ0yutFhrbbKtAb6zy4mKRq4yWIm4otSCsd+PAWDrd05SZKLfD1KI 4FSyplI5lUc0s3jv3sliYFCK5cuzS0XzR93OKwsQZ+eWXeEiuXxlOGNcsuELY8/QrDTPQ RFs5fYjxU7M8NpzioyTYaTOITu0wxKrTLIvcrdbKCppFIr6AVEBqjQoDpl6gdZ1YC9HlQ 9c03bu9YFKMKJ9pb1bG4G0e6Afn4Q8iUSMfGlJBiPJd1EhgwGMw1CGY8WlzVKaHGM3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794065623; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=KZ7EMno73wfHK0oPX58UTaPo1LJ+Q/tN/sNoVgCbNQw=; b=YYUwcKfNWis453lmWNvcF2S5xFs5DX+psWQmyaM1GbHqlZksHVmHTqcxETr2JhlaI+lI E0V0BFfi3oD/bqWjpS8FR3pvN9FOy3RSWtzvAG4csg+1fjcg/f9HZOmIK7NkixmDFZrm7 a0nLCPZyuOem2nHya31D9V+7AuCnAKEPrnpgE25GRyUDUTX3KdZPOqT/GwFvCxr1gjhuH 1JpLNjAgTCNGKHnnfZXF5NEy8a0Dq6wLhNLfo5jopnY/YiFC8jigKC+yPjZCj+X7C3qtb kntNmkjVX1uTudz6KSfhzBCVRWeTjrt2Pd7nWWVr0q9DUD8/5Ctmp8S9tMMyyzs+vMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b="HC3s/HIM"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EDE9606A338 for ; Sat, 7 Nov 2026 15:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HC3s/HIM Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03E131F0089F; Sat, 7 Nov 2026 15:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1794065623; bh=KZ7EMno73wfHK0oPX58UTaPo1LJ+Q/tN/sNoVgCbNQw=; h=From:To:Cc:Subject:Date:Reply-To; b=HC3s/HIMCUXHWGytH7tevAyABaM+MjaRId1+yTj1JTAPbC0gJyj5FXDiq8rA7VfyO +Z30IJSTIaxhJvywXmHjxsr0gS4Avq9YKNmW+J1xBNCc+4j3w5MI4A2tBqNQkeXFgE pbij489hTVMfTm9XzgTcwJ5ndG6Yi1IA90CNHjoA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99274: smb: client: fix fiemap wild read on empty truncated response Date: Sat, 7 Nov 2026 09:08:54 -0500 Message-ID: <2026110754-CVE-2026-99274-3998@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3108; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=np/kxk0gADTEWDak01E9jiqW9TsSYHyEeVflQrFz6JI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnvDb7lyn059fpI/rI/snnLHb+uM1hqVZ7cEZn+LSP37 tIvWe/sO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi61wY5lexr3t+wip9/nwL 47UN77vaGqL7rjAs2Hkss/ZGTEpTVM2/o/vmPTilsfTvQQA= 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: fix fiemap wild read on empty truncated response smb3_fiemap() treats -E2BIG from SMB2_ioctl() as a truncated range blob and loops for the next chunk. If the server reports STATUS_BUFFER_OVERFLOW with OutputCount == 0, SMB2_ioctl() returns -E2BIG with out_data == NULL and out_data_len == 0, and the existing length checks accept the empty result. The loop then evaluates next = out_data[num - 1].file_offset + ... with num == 0, reading 16 bytes before NULL. Reject a truncated range blob that contains no range, so the resume offset is never computed from an empty response. Also require the last range in a truncated blob to advance the resume offset without overflowing, and to stay within the requested range; a malicious or broken server could otherwise make no progress or underflow len and loop forever. Free the previous response buffer before retrying. Reproduced on 6.6.87.2 with a malicious SMB2 server that answers FSCTL_QUERY_ALLOCATED_RANGES with STATUS_BUFFER_OVERFLOW and OutputCount == 0; an FS_IOC_FIEMAP ioctl on the mount oopses in cifs_fiemap() with CR2 = fffffffffffffff8. The code path is unchanged on mainline. The Linux kernel CVE team has assigned CVE-2026-99274 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4 and fixed in 6.18.61 with commit 4a426ca5be7e3dedbe76575b967db04fbf01136f Issue introduced in 5.2 with commit 2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4 and fixed in 7.3.2 with commit 31f6dbb29fe17fa9595c7e8b19fd92915b03a4ca Issue introduced in 5.2 with commit 2f3ebaba13cebd8badfb9aed31c0cf3cc82eb4f4 and fixed in 7.4-rc1 with commit f5baa17a0f316c235d61623ac8e8fb32c2b3c0cc 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-99274 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/4a426ca5be7e3dedbe76575b967db04fbf01136f https://git.kernel.org/stable/c/31f6dbb29fe17fa9595c7e8b19fd92915b03a4ca https://git.kernel.org/stable/c/f5baa17a0f316c235d61623ac8e8fb32c2b3c0cc