From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796047399; b=yanRgjgsoBNJXDKybTicqJKmLRtxl3wfL2ZqYlw+c7IRibQo+0fL9h29zsqrM2NHhpWj LsPHQclTS+DsBy6VYLBE8jSeUiSwVNQqXZlRFn1OcYX7ayfnLDfRQH4xRJqAVLJefir6x XLJnTZuZHeHA7FQ8Y/OMcIFkyKrixkG3ArSbltOy6OuGUV6KvYMtl0eYt1IQxqD8K6/v7 kjIiPPqLUx3rkAhg1EQta5SCqJ3qGXyM/St4RSnXK/CyCzrLiqHX/V/9cxt9PgR6nDlxN n4xpUNhzsA13FuFcqTWj5aX60jdrpuTuP0hvtKoRG6kEn9/woBTIA4AGe2SD/y4cxTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047399; 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=fSx3S0T7RpvrUA9Dngft56yKWGHEJrRzKknfLtHdO30=; b=QA5ZgmrUDsB7dM/MXPKX8R8GCyVIusALBxS8WnkGQnAkXZ1iHD7erVDfldL62euVxCCG e33l9AB714jzII0SnC596OQVjIAsuHQmlLw0XrNnnYFEdTlvc/CO8ejO12q/2nJKEz7Ch hrck8J1WqsaYR71KbS2i9kd5H1QU/Phy7Sk3D9eYwxGrTAITLO39NAyoLiQNC4+TT/HdD uc0UDKp0mc1bKjTqSnTvyM7d+CbjHGzzP/ueD3WXBv5j42Ofvlg5tqf8xX6EF5igiMM/O hOf+zLAAJrXvjwr0rXjYCSvjUHLWqimQrcofyy6e177xDOXz4BHK2+EAikew8ssuUGQ== 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=j689o9aX; 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 30AA4606A330 for ; Mon, 30 Nov 2026 14:03:19 +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=j689o9aX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5590C1F00925; Mon, 30 Nov 2026 14:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047398; bh=fSx3S0T7RpvrUA9Dngft56yKWGHEJrRzKknfLtHdO30=; h=From:To:Cc:Subject:Date:Reply-To; b=j689o9aXwmt8tVaAV1g2TmBQoJ1GhDSHPmAFWr4o6mO94FX6XyIIs12V8vnQaJPK1 MZGVSyHpmnzuB6aKLELxdcrvgFStyVeZ5FTwQpWJx9AoFHWLLa2kTI0PxUckj4Fz3T RpP1NPRR8wUwOBlQvjpkgkvW+k8n6vD1UPtsGU1E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139261: ntfs: do not give a contiguous cluster allocation a second run Date: Mon, 30 Nov 2026 14:34:30 +0100 Message-ID: <2026113003-CVE-2026-139261-bd19@gregkh> X-Mailer: git-send-email 2.56.1 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=3404; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=36o9gOyN8cjFxKg/2tDnAmBpCb5YvmevTMjjHgWMazE=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VZd1BSOl/m5bpf41fsLB13eqmAI2Xz42uUhWYdLhw HMSC+KrO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/X8ZFlxstp1z7foCtxc7 N7zzeZwrynZaSIBhnsKX6UIzr7DrfZjsWxAt/OJGcrMTAwA= 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: ntfs: do not give a contiguous cluster allocation a second run ntfs_attr_map_cluster() asks ntfs_cluster_alloc() for contiguous clusters and merges the whole result into the runlist, but reports only its first run, so its callers zero only that run. Within a bitmap page the allocator keeps such a request to one run, because a cluster in use ends it. The zone search can also move on without testing the clusters after the run, though: it skips a bitmap page that has no free clusters, it goes from the end of the zone to the start of pass 2, and once every zone has been searched it shrinks the MFT zone by half and goes on at its new end. After each of these jumps the first cluster tested is still taken as the next one of the run, and if it is free it starts a second run elsewhere on the volume. fallocate() over a hole then leaves the clusters of that second run holding whatever they held before: on a nearly full volume, 16 of 20 fallocated clusters read back a deleted file's data, in each of the three cases. Delayed allocation gets a second run without punching any holes: filling the same volume with write() reaches the last case when the MFT zone is shrunk. The allocator then takes only the first run off the dirty-cluster count, and after the fill statfs() reported no free space while 939 clusters were still free, until the next mount. Before setting the bit of a cluster for a contiguous request, check that the cluster comes right after the run, and return the run as it is if not; no bit has to be cleared. ntfs_attr_map_cluster() already handles a short run, which a cluster in use produces in the same way: its callers ask again for the rest. The Linux kernel CVE team has assigned CVE-2026-139261 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 11ccc9107dc460de28af90fac1f42404d9802735 and fixed in 7.3.6 with commit faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc Issue introduced in 7.1 with commit 11ccc9107dc460de28af90fac1f42404d9802735 and fixed in 7.4-rc1 with commit b05a67615b982cfaa903df8a6fb055d18ebafe11 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-139261 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/ntfs/lcnalloc.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/faf1e98e624a45a091de2a8cc636f6a2c7b8d2bc https://git.kernel.org/stable/c/b05a67615b982cfaa903df8a6fb055d18ebafe11