CVE-2026-139266

ntfs: fix FITRIM bitmap indexing for large pages

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

ntfs: fix FITRIM bitmap indexing for large pages

The LCN bitmap has one bit per cluster, so a bitmap page represents
PAGE_SIZE * 8 clusters. ntfs_trim_fs() still used a 15-bit shift when
selecting the page. On arm64 with 16 KiB pages this selects the wrong
bitmap page and can test or discard the wrong clusters.

Compute bitmap indices from buf_clusters, use the page cluster base as
the bit-search origin, and keep the requested range as the clipping
boundary.

Analysis

AI-generated

Technical impact

The bug in the Linux NTFS module caused the trim operation to use a fixed 15‑bit shift when selecting bitmap pages, even on architectures with larger page sizes such as arm64’s 16 KiB pages. This mis‑alignment meant the wrong bitmap page would be read or modified, leading to the truncation or integrity check of incorrect sectors on the underlying NTFS volume. As a result, files could be partially erased or become corrupted, compromising the confidentiality and integrity guarantees of the file system.

Affected Systems

All Linux kernel implementations that include the NTFS driver prior to the patch, notably on arm64 platforms where page sizes exceed 8 KiB. Any host that mounts an NTFS volume and uses the block device trim (discard) option is susceptible regardless of the specific NTFS file‑system version.

Risk and Exploitability

The vulnerability requires local execution of NTFS trim commands, thus it is not remotely exploitable. There is no direct code‑execution or denial‑of‑service vector; the primary risk is data loss from incorrect trimming. Because the creation of the adverse state relies on the system initiating a trim on a mis‑indexed bitmap page, the attack surface is limited to systems performing such operations. No comparison of the CVSS or EPSS archives is available, and the issue is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that contains the ntfs_trim bitmap indexing fix
  • If an immediate kernel update is not possible, re‑mount affected NTFS volumes without the discard (trim) option
  • After updating or remounting, run fsck or an NTFS consistency check to repair any potential data corruption

Generated by OpenCVE AI on December 1, 2026 at 07:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

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

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ntfs: fix FITRIM bitmap indexing for large pages The LCN bitmap has one bit per cluster, so a bitmap page represents PAGE_SIZE * 8 clusters. ntfs_trim_fs() still used a 15-bit shift when selecting the page. On arm64 with 16 KiB pages this selects the wrong bitmap page and can test or discard the wrong clusters. Compute bitmap indices from buf_clusters, use the page cluster base as the bit-search origin, and keep the requested range as the clipping boundary.
Title ntfs: fix FITRIM bitmap indexing for large pages
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1285

    Improper Validation of Specified Index, Position, or Offset in Input

  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 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:33 PM