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=1796047402; b=CdHSgCKCNhqbPTkYZg7/bTksh/OLxYkfBg4qVYzhftYri0CdMP4FeDLthHnR9uF3nbcS Ag5JAKW/frp5s+9nxXQqsdnBejsaLQk62WrFOZpLbqnlSw/apNevCuC74ElotXpYIQR/B nC/Yf+xfQM0cIyzTRDTDQKuXjptDfcLTD3riTNLSKZVYnRoDFe8/cbb9w60AJMtlDhK1G 7XAYYq7Fzp7jqybg/9dNFj1VolagrXb7NwT2C4KezwZU1cZer/TPAcQpv9c+e6+RpCWMe FqP0kvafpAL/66Xt0Qv8o0Oc9x5Vn/uHPaSA58xPTgnAhoNV+EIs6PfBCiJV/Lo9N3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796047402; 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=ty77flCcCrrV0BD5sURDXCpSygB1nRYNG49pWSaj1vE=; b=MLHL4+E84wYUhSjEDg6bGTWhySP89INuc6pyhfrc4+dfF3eIxgqLqWzZnX6+wJP343fS qaB8eZp8u1y2d+SprYaaskODKFdDBx18osAPjklExjN9m65sGom2EYdmgKxRcLKqwIG0k 85nWzxnqRB9l8UxB/ci8HVGl6WOOy6NgqoL6fIMjHgGEXqUfiHfWfksaMiDNc/gNiYdJg wpdadDpEq9/IFAmhEPU+iKvbKUVmOsvfllZ5BB/fyGk+sfLeA+KpeyPUea/Bgh6QG4wMK yY4Mu7grTR6RXlMsfomEpRsbW9tWArqtXyFdYHKOrYVs5eFOGcY3wobCRypQNksNeQw== 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=fhxyzCtQ; 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 B95FB606A32C for ; Mon, 30 Nov 2026 14:03:22 +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=fhxyzCtQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 169EB1F00926; Mon, 30 Nov 2026 14:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796047402; bh=ty77flCcCrrV0BD5sURDXCpSygB1nRYNG49pWSaj1vE=; h=From:To:Cc:Subject:Date:Reply-To; b=fhxyzCtQi/sjhGh76cv0z23q8knmnI9fjf3lbNns6awNh1HFgQIcy/fmKqiSc+voh t563+wSDbYnSKmeJUOGpQ39xYjyfinYcct1P0X0UzuMAOYdfDjMDyAJmCx4F+vDkFG UvHZsVrTw4Pp4zvpH73LygwXiTdLBXuiXtXpLvA0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139262: ntfs: restart the zone search when the allocation hint fails Date: Mon, 30 Nov 2026 14:34:31 +0100 Message-ID: <2026113003-CVE-2026-139262-e022@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=3843; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6GyQ1m8jtZQK7OnIBhftATgtmX0/Q5LCAnfwhEEldqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8VZeNQ2TFj+0LmLpoT+RiOe2XrWwLMru8RZbLv7n0m 71rQmhWRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyE7RbDgl0hq3ateL6/4Z9q jP+Oye/Sj4bwvGJYMJuR13CS7MLXp/OOvIpblV2w/fHppwA= 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: restart the zone search when the allocation hint fails When ntfs_cluster_alloc() is given a start_lcn, it first tries the clusters from there on. If that does not satisfy the request, it moves on to the zone's current position, but keeps the pass, the zone_end and the has_guess state it had. That loses free clusters in two ways. If the search had already moved on to pass 2, whose range ends at the hint, it scans only from the zone position to the hint and misses every free cluster between the start of the zone and the zone position. If no cluster had been tested yet, has_guess is still set, so the cluster at the zone position is tried as if it had been the hint, and when that cluster is in use the rest of the bitmap buffer is skipped. Both happen when the hint lies at or past the end of the volume, which ntfs_attr_map_cluster() produces when it extrapolates from the last allocated run across a hole. The allocator then finds nothing, shrinks the MFT zone to nothing trying to satisfy the request, and fails with -ENOSPC. To reproduce on a 128 MiB volume with 4 KiB clusters, extend two files in turn by one cluster at a time, alternating between fallocate(), write() past EOF and truncate() up, so that the runs of each file are separated by holes. When the volume is full, truncate both files back to 1 MiB and start again. During the second round a one-cluster fallocate() fails with ENOSPC while 40 MiB is free. Start the zone over as if no hint had been given. A contiguous request can get there with the run from the hint already allocated, when that run reached the end of a bitmap buffer or of the zone. Return that run instead, as when a cluster in use ends it; going on at the zone position gives the request a second run that its caller does not expect. That could happen before this patch too, whenever the cluster at the zone position was free. ntfs_attr_map_cluster() reports and zeroes only the first run, so after a fallocate() of 20 clusters over a hole, with the hint 4 clusters before the end of the volume, 16 of them read back the data of a deleted file. The Linux kernel CVE team has assigned CVE-2026-139262 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 11ccc9107dc460de28af90fac1f42404d9802735 and fixed in 7.3.6 with commit 52df8c5fb224ce77c01a6045ed6038e0605296a2 Issue introduced in 7.1 with commit 11ccc9107dc460de28af90fac1f42404d9802735 and fixed in 7.4-rc1 with commit 18d4d2a3ce756af690a620a5199616ce2611c2c9 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-139262 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/52df8c5fb224ce77c01a6045ed6038e0605296a2 https://git.kernel.org/stable/c/18d4d2a3ce756af690a620a5199616ce2611c2c9