CVE-2026-139216

ntfs: fix u16 truncation of the update sequence array count check

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ntfs: fix u16 truncation of the update sequence array count check

ntfs_check_restart_page_header() bounds the on-disk system page size by
recomputing the update sequence array count from it:

u16 ra_ofs, usa_count, usa_ofs, usa_end = 0;
...
usa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS);
if (usa_count != le16_to_cpu(rp->usa_count))
return false;

The right hand side is computed in u32 but stored in a u16, so the count
wraps once the system page size reaches 0x2000000. An image claiming any
larger power of two passes the check by also claiming usa_count == 1.

Nothing else limits the value, so ntfs_check_and_load_restart_page() goes
on to kvzalloc() up to 2 GiB for the restart page and copy that many bytes
a page at a time. The size is only rejected afterwards, by the
(size >> NTFS_BLOCK_SIZE_BITS) != usa_count test in post_read_mst_fixup().

Compute the count in a u32 so the existing check rejects an over-large
system page size instead of being defeated by the truncation. This adds
no new limit: the array holds one u16 per protected sector plus the update
sequence number and must end within the first sector, which caps usa_count
at 240 and the system page size at 64 KiB.

Widen ra_ofs and usa_ofs as well, as ntfs_check_restart_area() already
does: both are loaded from __le16 on-disk fields and every comparison is
against a non-negative value, so no result changes.

Analysis

AI-generated

Technical impact

The vulnerability is in the Linux kernel’s built‑in NTFS driver. The code that verifies the restart page header calculates the update sequence array count using a 32‑bit integer but stores the value in a 16‑bit field. For system page sizes larger than 32 MiB the truncated value wraps, causing the consistency check to succeed. The kernel then allocates up to 2 GiB of memory for the restart page and copies that many bytes before detecting the size mismatch. This can exhaust kernel memory or trigger a panic, resulting in a denial of service.

Affected Systems

All Linux kernel releases that include the unpatched ntfs driver are affected. The issue exists in any distribution that ships a kernel before the commit that introduced the fix. If NTFS support is enabled—either built into the kernel or compiled as a module—mounting a filesystem image that contains a restart page with a wrapped count can trigger the flaw. Distributions that disable NTFS in the kernel are not affected.

Risk and Exploitability

The CVSS and EPSS scores are not available, and the vulnerability is not listed in CISA KEV. An attacker would need to supply a malicious NTFS image that contains the wrapped update sequence count, for example by mounting such a volume from removable media or a network share. The attack vector is inferred as mounting the vulnerable image, because the code path is exercised only during an NTFS mount. Once the image is presented, the kernel allocates large amounts of memory before detecting the issue, leading to an out‑of‑memory condition or a crash. The lack of publicly disclosed exploitation code and the absence of severity metrics suggest a moderate to high risk; however, the flaw can be effectively triggered under the described conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the commit that corrects the update sequence count calculation.
  • Restart the system to load the patched kernel image.
  • If an update is not available, disable NTFS support in the kernel options or mount NTFS volumes in a restricted or read‑only mode to avoid processing untrusted data.

Generated by OpenCVE AI on December 1, 2026 at 10:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-681
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ntfs: fix u16 truncation of the update sequence array count check ntfs_check_restart_page_header() bounds the on-disk system page size by recomputing the update sequence array count from it: u16 ra_ofs, usa_count, usa_ofs, usa_end = 0; ... usa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS); if (usa_count != le16_to_cpu(rp->usa_count)) return false; The right hand side is computed in u32 but stored in a u16, so the count wraps once the system page size reaches 0x2000000. An image claiming any larger power of two passes the check by also claiming usa_count == 1. Nothing else limits the value, so ntfs_check_and_load_restart_page() goes on to kvzalloc() up to 2 GiB for the restart page and copy that many bytes a page at a time. The size is only rejected afterwards, by the (size >> NTFS_BLOCK_SIZE_BITS) != usa_count test in post_read_mst_fixup(). Compute the count in a u32 so the existing check rejects an over-large system page size instead of being defeated by the truncation. This adds no new limit: the array holds one u16 per protected sector plus the update sequence number and must end within the first sector, which caps usa_count at 240 and the system page size at 64 KiB. Widen ra_ofs and usa_ofs as well, as ntfs_check_restart_area() already does: both are loaded from __le16 on-disk fields and every comparison is against a non-negative value, so no result changes.
Title ntfs: fix u16 truncation of the update sequence array count check
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-681

    Incorrect Conversion between Numeric Types

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM