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 C43733D3D1A for ; Fri, 28 Aug 2026 06:52:46 +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=1787899969; cv=none; b=pFYPLxwm2C70qMiW6+JpW8IWfv2n6Upi68N2v2QkkqtiwRzk91zIcPJInXlof3p7+87hTQnZr0jZGXaYn4q3eunPbqkhAKcWW2h97V9JOyrcwBzTrhHVoTsfsbdt0pwYdibnm68MdQdO16JiBCtzgPcQCPZKhlYE5FzwUghZ+F8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899969; c=relaxed/simple; bh=Rr3JoA5/oFXGS5KsIKEIcLhOYhppCyfp87wurGhCgLI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CMgwLIuSvFltm1r0cimEvUWyWxzHhuZ8cAm0/n9hpokhY7Vac2ZFuLZjVMLWqb2tXrvFPpIAwFywt6G9zOdSHBflAHfT+QFtf6o2si9w0luasAW5L7iyei4qOgLmCW+yfoltr3KFURtm/HcRyDQHJW5bYsbS8Sd5bajsisTESdU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1hQW1GX2; 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="1hQW1GX2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 347931F00A3D; Fri, 28 Aug 2026 06:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899965; bh=og3N9mKM5CZ8FoDBLaqrQatAgCMY9uIKgWPbCZicU/Q=; h=From:To:Cc:Subject:Date:Reply-To; b=1hQW1GX2a2HvWjiT6yIzFq+l8JIvRSorqS9dG2oiT5TU+iUEJORPPZLcpeeZzCUXk Tyd/sQxd4pjq8hqJ/V5OVenVh72oxXUpQRS2G8R8b985FBt2bFZrdDKKwQBK3xzRT7 /OKRx3Kyb4A1W5X/nyxPqnkCUW9EeRyXQ5Xv3K28= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80672: ntfs: fix u16 truncation of restart-area length check Date: Fri, 28 Aug 2026 08:49:49 +0200 Message-ID: <2026082848-CVE-2026-80672-7be5@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=3592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fT8rl/ZBcefW2uKpSSixTusupaWUwVHOaypCddWmvM4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9QN2783z9ZPwXLvm83be8H1Hr3RYPDQzO69yTPVrU 9fe6NkXOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJ1QZFqzv7LWueGn+UWdy Qe6++6/VNGKl3jPM4WW8YvLmw7fG2PNa3UwlnDOuiM1UAAA= 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: fix u16 truncation of restart-area length check ntfs_check_restart_area() validates that the $LogFile restart area and its trailing log client record array fit within the system page size: u16 ra_ofs, ra_len, ca_ofs; ... ra_len = ca_ofs + le16_to_cpu(ra->log_clients) * sizeof(struct log_client_record); if (ra_ofs + ra_len > le32_to_cpu(rp->system_page_size) || ...) return false; ra_len is u16, but the right-hand side is computed in size_t (sizeof(struct log_client_record) == 160). Both ca_ofs and log_clients come straight from the on-disk restart area. With an on-disk log_clients of 410 the product 410 * 160 = 65600; adding ca_ofs and storing into the u16 ra_len truncates modulo 65536 (e.g. ca_ofs 64 gives ra_len 128), so the "fits in the page" check passes even though the client array described by log_clients extends far beyond the page. ntfs_check_log_client_array() then walks the array bounded only by the on-disk log_clients count: cr = ca + idx; if (cr->prev_client != LOGFILE_NO_CLIENT) ... For log_clients 410 it dereferences records up to ca + 409 * 160, ~64 KiB past the kvzalloc(system_page_size) restart-page buffer -- an out-of-bounds read of attacker-controlled extent, reachable when a crafted NTFS image is mounted (load_and_check_logfile() at mount time). This is the in-kernel analogue of CVE-2022-30789, fixed in the ntfs-3g userspace driver but never in this revived classic driver. Compute the restart-area length in a u32 so the existing bounds check rejects an over-large client array instead of being defeated by the truncation. Widen ra_ofs and ca_ofs to u32 as well: both are loaded from __le16 on-disk fields and every comparison already promotes to int/size_t, so this changes no result and keeps the declaration uniform. The Linux kernel CVE team has assigned CVE-2026-80672 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 and fixed in 7.1.5 with commit 07a4751ef3ccc8bfd17bfbb16e5003c03161790d Issue introduced in 7.1 with commit 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 and fixed in 7.2 with commit 390936fb15053d8d8991ca3a22776e251a5a7f2f 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-80672 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/logfile.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/07a4751ef3ccc8bfd17bfbb16e5003c03161790d https://git.kernel.org/stable/c/390936fb15053d8d8991ca3a22776e251a5a7f2f