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=1796045844; b=MoA50K5vRk7Nha71tXJ7aREoSH44zYuQn9u85MRkRe4jcK5Zt75SKHNi0F2nCkTZb0eU VpHnF3BErYqv1muvcDyFKfzJtMrgWjf8jLwGGsJlfQMRplYgC80zf79VtgDpDFwP737/L N490GAPSBHWoYfs+5FQkDcsx2elePD5wglXjvP7SVN/9LZCf5znpp93knWLAfhlk6pOrG XEF2YSSDNxOBy6geLDzH7XaqI7gzueStroOFyItrcvTZtS0e/V+6VvlvZs6hfwC7FOEfJ pEloNOqbVFivguNQ9SoTLUdSK8aP8z66Kov1C6yqAl9VxGJtlxFMwdksCdUIllrMOfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796045844; 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=kzwuIlalYIyb97eL0nUi//iJLSf7UK/orm8zR4p44g0=; b=UzTd/Rbdwj7QKlB1I8FBmS7tufSGMWMKH4AzHJm3MfDHV8o8Dd5qXfcQ6rKpD9B1pI9M I7PtBnfi9md7CyxFwvLTsItNr0lzeDaLi3vKAVUBZrj8D1ii8pWd69c0RHlSkXdBGl0F7 xfFWp/XVGckMmX91xDq7gCPPQ7cubJLTvWiRLMmTGhEpTYOcGe5hAWk3l1lboudErXS4M e0NTy65QrgaMkxQkvJ23off8kxpYXDv/lrHxGApHewKYXRRDw3KqQ2Mb0HeZx73oqyLm6 BAa4OmyVCJCVQGmV+jggofrMap4TjbcdPEXoTMIVxTw5kE5dr4RB+W6FAr1he6idPqA== 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=gKynoQ8k; 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 58119606A31C for ; Mon, 30 Nov 2026 13:37:24 +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=gKynoQ8k Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D5AE1F00896; Mon, 30 Nov 2026 13:37:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796045844; bh=kzwuIlalYIyb97eL0nUi//iJLSf7UK/orm8zR4p44g0=; h=From:To:Cc:Subject:Date:Reply-To; b=gKynoQ8ki2oBQjqk5dp5EYE1dOOqluNKYJ/Eaq53yKAWwj4vchhelluXWCIXWaKsr EWooAhjBd3N+dxjTVxmOvCDbH8CFt9umlClgzdVnR5otMivzICyjsksy0DS2LhuQxH n1cZgKoBNnY2RBdTYVKHZsR3S9uPqh8vn9zrt6UI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-100002: ntfs: fail the mount when $MFT needs its own extent records Date: Mon, 30 Nov 2026 14:23:07 +0100 Message-ID: <2026113007-CVE-2026-100002-e68b@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=4217; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a4GehyKd2PcAbDanoNaNjnT86s4ciOhCnzJq36G6cRs=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8Fbv/n9A34O/tsZj9e4th/+3T8fUrU/TDfS2/7J/9M GeC/dT2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI7ROGBX06SkINH55uiWKN kEiPrb/ys918G8M8jdM39r58GWK++IhV2pQ7m/Z0RpxdDwA= 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: fail the mount when $MFT needs its own extent records Mounting a crafted image hangs the mount process forever, unkillable at 0% CPU. Only the hung-task detector reports it: INFO: task mount:74 blocked in I/O wait for more than 30 seconds. folio_wait_bit_common <- waits forever filemap_read_folio map_mft_record_folio map_mft_record ntfs_map_runlist_nolock ntfs_attr_vcn_to_rl __ntfs_read_iomap_begin iomap_read_folio ntfs_read_folio <- already holds that folio's lock ntfs_read_inode_mount ntfs_fill_super ntfs_read_inode_mount() assembles $MFT's runlist one $DATA extent at a time, hoping, as its comment says, that it never needs a part of $MFT it has not decoded yet. If $MFT's attribute list puts one of its attributes or later $DATA extents in an extent record outside the runlist decoded so far, reading that record re-enters ntfs_map_runlist_nolock() for $MFT. Depending on the layout, that waits on the folio lock it already holds, as above, blocks on $MFT's runlist lock, or dereferences NULL in map_extent_mft_record(). Mark the volume for the whole $DATA enumeration and have ntfs_map_runlist_nolock() refuse $MFT with -EIO while the mark is set. The enumeration decodes each extent itself with ntfs_mapping_pairs_decompress(), so it does not need that path. A validly placed record can trip the check too. The driver puts an extent record for $MFT's own mapping pairs before the first vcn it describes, but with clusters smaller than a page, the folio holding it can still run past the decoded runlist. An unpatched kernel hangs on that layout as well; with the check the mount fails. The check then refuses only the folio's tail, so this patch needs "ntfs: do not map an unmappable runlist fragment as a hole": without it the tail is zero-filled and the mount serves an all-zero mft record. The mount now fails instead of hanging: ntfs: (device vda): ntfs_map_runlist_nolock(): $MFT needs its own extent records to describe itself; cannot mount. Tested under qemu with KASAN, PROVE_LOCKING and the hung-task detector on ntfs-next, with and without the whole series: six crafted images that hang or crash an unpatched kernel fail to mount with the series, and nine images that mount without it still mount, three of them with the same file listing and contents, among them a volume written by ntfs-3g whose $MFT has its $DATA in three extent records. The Linux kernel CVE team has assigned CVE-2026-100002 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit b041ca562526b3c4a71b41b80ba5e520eac636ad and fixed in 7.3.4 with commit ccdb67f6bd08242bf98002db6a98e2efc7228ff3 Issue introduced in 7.1 with commit b041ca562526b3c4a71b41b80ba5e520eac636ad and fixed in 7.4-rc1 with commit 5562eaecdaf9deb3f750441c95a5f2c440b3293b 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-100002 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/attrib.c fs/ntfs/inode.c fs/ntfs/volume.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/ccdb67f6bd08242bf98002db6a98e2efc7228ff3 https://git.kernel.org/stable/c/5562eaecdaf9deb3f750441c95a5f2c440b3293b