GHSA-49R8-437C-6HQ2

Vulnerability from github – Published: 2026-12-03 06:30 – Updated: 2026-12-03 06:30
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

iomap: follow the alignment requirement for iomap_dio_hole_iter()

[BUG] On the latest development branch, btrfs with 8K block size on 4K page sized systems will fail all test cases that run fsstress.

One very short example would be:

# $fsstress -n 4 -d $mnt -s 1785675805 -v 0/0: dwrite - no filename 0/1: creat f0 x:0 0 0 0/1: creat add id=0,parent=-1 0/2: write dontcache f0[259 1 0 0 0 0] [816411,3620] 0 0/3: dread - xfsctl(XFS_IOC_DIOINFO) f0[259 1 0 0 32 820031] return 25, fallback to stat() 0/3: dread f0[259 1 0 0 32 820031] [483328,81920] 0

Which triggered the following ASSERT():

assertion failed: IS_ALIGNED(state->start, blocksize) && IS_ALIGNED(state->end + 1, blocksize), in fs/btrfs/extent-io-tree.c:346 (unaligned extent state, blocksize=8192 start=487424 end=565247 state=0x0) ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:346! Oops: invalid opcode: 0000 [#1] SMP CPU: 4 UID: 0 PID: 648 Comm: fsstress Tainted: G E 7.2.0-rc5-custom+ #431 PREEMPT(full) 7c507bd40d65e4d871e698b22d80f1306bbec543 Tainted: [E]=UNSIGNED_MODULE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022 RIP: 0010:validate_extent_state.part.0.isra.0.cold+0x24/0x26 [btrfs] Call Trace: insert_state+0x34/0x1a0 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] set_extent_bit+0x440/0x8d0 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] btrfs_lock_extent_bits+0x58/0x380 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] btrfs_dio_iomap_begin+0x319/0xb70 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] iomap_iter+0x1a2/0x370 __iomap_dio_rw+0x236/0x8d0 iomap_dio_rw+0x12/0x30 btrfs_direct_read+0x15f/0x290 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] btrfs_file_read_iter+0x42/0x90 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8] vfs_read+0x25e/0x380 ksys_read+0x73/0xe0 do_syscall_64+0xe1/0x790 entry_SYSCALL_64_after_hwframe+0x4b/0x53 RIP: 0033:0x7fc3f129318e

[CAUSE] iomap_dio_hole_iter() is responsible for zeroing out the buffer for a hole, which calls iov_iter_zero() to zero the range.

However btrfs disables page fault during its __iomap_dio_rw() call, so iov_iter_zero() can fail at any page boundary.

When the fs block size is larger than page size, iov_iter_zero() may only have zeroed one page, which is not aligned to the fs block size.

Such one page long range is passed back to btrfs, which triggers the above ASSERT().

[FIX] For iomap_dio_hole_iter() round down the copied length, and revert any excessive range that is beyond the aligned copied length. Also use @aligned_copied for the size increment and iter advancement.

This should only affect btrfs, which is the only fs utilizing iomap dio with page fault disabled.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-142911"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-12-03T04:18:30Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niomap: follow the alignment requirement for iomap_dio_hole_iter()\n\n[BUG]\nOn the latest development branch, btrfs with 8K block size on 4K page\nsized systems will fail all test cases that run fsstress.\n\nOne very short example would be:\n\n # $fsstress -n 4 -d $mnt -s 1785675805 -v\n 0/0: dwrite - no filename\n 0/1: creat f0 x:0 0 0\n 0/1: creat add id=0,parent=-1\n 0/2: write dontcache f0[259 1 0 0 0 0] [816411,3620] 0\n 0/3: dread - xfsctl(XFS_IOC_DIOINFO) f0[259 1 0 0 32 820031] return 25, fallback to stat()\n 0/3: dread f0[259 1 0 0 32 820031] [483328,81920] 0\n\nWhich triggered the following ASSERT():\n\n assertion failed: IS_ALIGNED(state-\u003estart, blocksize) \u0026\u0026 IS_ALIGNED(state-\u003eend + 1, blocksize), in fs/btrfs/extent-io-tree.c:346 (unaligned extent state, blocksize=8192 start=487424 end=565247 state=0x0)\n ------------[ cut here ]------------\n kernel BUG at fs/btrfs/extent-io-tree.c:346!\n Oops: invalid opcode: 0000 [#1] SMP\n CPU: 4 UID: 0 PID: 648 Comm: fsstress Tainted: G            E       7.2.0-rc5-custom+ #431 PREEMPT(full)  7c507bd40d65e4d871e698b22d80f1306bbec543\n Tainted: [E]=UNSIGNED_MODULE\n Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022\n RIP: 0010:validate_extent_state.part.0.isra.0.cold+0x24/0x26 [btrfs]\n Call Trace:\n  \u003cTASK\u003e\n  insert_state+0x34/0x1a0 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  set_extent_bit+0x440/0x8d0 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  btrfs_lock_extent_bits+0x58/0x380 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  btrfs_dio_iomap_begin+0x319/0xb70 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  iomap_iter+0x1a2/0x370\n  __iomap_dio_rw+0x236/0x8d0\n  iomap_dio_rw+0x12/0x30\n  btrfs_direct_read+0x15f/0x290 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  btrfs_file_read_iter+0x42/0x90 [btrfs 6924944583e4bc91a7c5183a1e7908e745a9b0c8]\n  vfs_read+0x25e/0x380\n  ksys_read+0x73/0xe0\n  do_syscall_64+0xe1/0x790\n  entry_SYSCALL_64_after_hwframe+0x4b/0x53\n RIP: 0033:0x7fc3f129318e\n  \u003c/TASK\u003e\n\n[CAUSE]\niomap_dio_hole_iter() is responsible for zeroing out the buffer for a\nhole, which calls iov_iter_zero() to zero the range.\n\nHowever btrfs disables page fault during its __iomap_dio_rw() call, so\niov_iter_zero() can fail at any page boundary.\n\nWhen the fs block size is larger than page size, iov_iter_zero() may\nonly have zeroed one page, which is not aligned to the fs block size.\n\nSuch one page long range is passed back to btrfs, which triggers the\nabove ASSERT().\n\n[FIX]\nFor iomap_dio_hole_iter() round down the copied length, and revert\nany excessive range that is beyond the aligned copied length.\nAlso use @aligned_copied for the size increment and iter advancement.\n\nThis should only affect btrfs, which is the only fs utilizing iomap dio\nwith page fault disabled.",
  "id": "GHSA-49r8-437c-6hq2",
  "modified": "2026-12-03T06:30:38Z",
  "published": "2026-12-03T06:30:38Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142911"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4025185cf953e3f52ab63cf5fec50c1485ee7bb7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/74ab376345a5221cbe5c6ada6cad20e46638bca1"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.