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 E9CC54C10E2 for ; Thu, 17 Sep 2026 16:19: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=1789661979; cv=none; b=LNirWP17NjJTki+B36quGsYCidxmN8Eza5EsA3AGbZ1bGFpKv8BZn8xqVH0WKkfAFL3hy3xZqERe+BzxtOTLtq5Z9CTYjO2pu1XgcnxipmgSUT7UlneV4wtC07g5IMAzGkmAv97XUcElmVki/LjKK6So+QAQs2aKKW66G+MHWvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661979; c=relaxed/simple; bh=At6xGs+h62QiZ1AffyQBQxq9GHF9jULlrU2cdjiknok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b23xBFXeKB2Rw8VcptbpfPeE4hC9fiF/7atukGTWllDlD0CFESbUEGVvHeIvTEdY40OdY2kxlhuMWd+iSXwPKpOvT/sbTC0E4HSIJoHl9UgHlKXVCj7h6spPHJ+hxwgwsXHN9jFmX+8bAzL3UoPSuXckhluLRXNzAp5920D+HOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mgwn9seG; 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="mgwn9seG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 457231F000FF; Thu, 17 Sep 2026 16:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661977; bh=5jQK1yqntw4NSFw5bbNPDX2D5PbYTL8aSpFfulMdH9A=; h=From:To:Cc:Subject:Date:Reply-To; b=mgwn9seG+qa4bPzhruyGrJAZtegYgMXXQu1zp9tu5L9GGbsS5FpWH7jc3hoUGwAk2 eY/0S1kIsQJISM5VxsBwQ5E18Lmqd+f7TC6OSqFuUNeNeBAzNuVKoPKQufdiAG1Z4l gJQCvEjR3GorKeX7OlVUpFsnfbrVkB6LN7O/t1tQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90199: fs/ntfs3: reject out-of-range evcn in mi_enum_attr() Date: Thu, 17 Sep 2026 17:10:29 +0100 Message-ID: <2026091733-CVE-2026-90199-de96@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=4106; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oVuOuZt9TUDYiXolV5+ObfPeHOjb4/gtFEx4bSOnsQg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBBoFPUP+pM6+/u8Yz9KYdJ+qbr1u2eOvtqcWRB5zc 5V0zj7eEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNp5WeYZ+AluHL+mg/ReoZ8 h4ujHqdXNG1dxLBgxTVxyTXqfhve6t1JeLaBqX2u+/YuAA== 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: fs/ntfs3: reject out-of-range evcn in mi_enum_attr() In mi_enum_attr(), the start/end VCN validation for non-resident attributes is: if (svcn > evcn + 1) goto out; When evcn is U64_MAX the "evcn + 1" expression wraps to 0 and any svcn passes the check. For evcn values close to U64_MAX (but not equal to it) the right-hand side is still a meaningless near-wrap upper bound, so a malformed on-disk attribute with svcn == 0 and evcn near U64_MAX can pass mi_enum_attr() unrejected. VCN (virtual cluster number) is a cluster index, so any valid evcn is bounded by the volume's total cluster count, which ntfs3 holds in sbi->used.bitmap.nbits (set up in ntfs_init_from_boot() before any caller of mi_enum_attr() runs). Reject evcn values that fall outside this range. However, an empty non-resident attribute (no allocated clusters) is legitimately encoded with svcn == 0 and evcn == -1 (U64_MAX), e.g. via attr->nres.evcn = cpu_to_le64((u64)vcn - 1) with vcn == 0. That sentinel must keep passing, so exclude evcn == U64_MAX from the range check. The existing "svcn > evcn + 1" test still tolerates the sentinel ("0 > 0" is false) and continues to require svcn == 0 for it, while the range check rejects every other out-of-range evcn and thereby also defuses the "evcn + 1" wraparound. svcn does not need its own bound: once evcn < nbits, "svcn > evcn + 1" implies svcn <= nbits. [almaz.alexandrovich@paragon-software.com: fixed evcn check] The Linux kernel CVE team has assigned CVE-2026-90199 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 013ff63b649475f0ee134e2c8d0c8e65284ede50 and fixed in 6.6.157 with commit 0441e34ce098c19185a7b52c5b8b89a8a5b26888 Issue introduced in 6.6 with commit 013ff63b649475f0ee134e2c8d0c8e65284ede50 and fixed in 6.12.110 with commit 7ab69cef49ebdfee288287d62641b24ab1445ecc Issue introduced in 6.6 with commit 013ff63b649475f0ee134e2c8d0c8e65284ede50 and fixed in 6.18.52 with commit ce9a619c432b9a4044fee115c5483fbed946c131 Issue introduced in 6.6 with commit 013ff63b649475f0ee134e2c8d0c8e65284ede50 and fixed in 7.2.6 with commit 2b9a0e57bfd365e2096706b19ae34dce3b4a884b Issue introduced in 6.6 with commit 013ff63b649475f0ee134e2c8d0c8e65284ede50 and fixed in 7.3-rc1 with commit 20fd9f64c0050658f2031e6bd5d552c6f0c8f7e3 Issue introduced in 5.15.209 with commit a7accf181a4709a6e380360372150cc4a1b6b89a Issue introduced in 6.1.115 with commit 3dfd727873c3e8da74a2e3907120ff052c5f0bcc Issue introduced in 6.5.11 with commit 1d7dd485108d4f633b543c9c14071cc325b68ae5 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-90199 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/ntfs3/record.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/0441e34ce098c19185a7b52c5b8b89a8a5b26888 https://git.kernel.org/stable/c/7ab69cef49ebdfee288287d62641b24ab1445ecc https://git.kernel.org/stable/c/ce9a619c432b9a4044fee115c5483fbed946c131 https://git.kernel.org/stable/c/2b9a0e57bfd365e2096706b19ae34dce3b4a884b https://git.kernel.org/stable/c/20fd9f64c0050658f2031e6bd5d552c6f0c8f7e3