{"api_version":"1","generated_at":"2026-12-03T05:42:37+00:00","cve":"CVE-2026-142911","urls":{"html":"https://cve.report/CVE-2026-142911","api":"https://cve.report/api/cve/CVE-2026-142911.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142911","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142911"},"summary":{"title":"iomap: follow the alignment requirement for iomap_dio_hole_iter()","description":"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->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)\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  <TASK>\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  </TASK>\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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:30","updated_at":"2026-12-03 04:18:30"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/4025185cf953e3f52ab63cf5fec50c1485ee7bb7","name":"https://git.kernel.org/stable/c/4025185cf953e3f52ab63cf5fec50c1485ee7bb7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/74ab376345a5221cbe5c6ada6cad20e46638bca1","name":"https://git.kernel.org/stable/c/74ab376345a5221cbe5c6ada6cad20e46638bca1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142911","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142911","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 001397f5ef4908ea46a63059439e8c3bf3552d9f 74ab376345a5221cbe5c6ada6cad20e46638bca1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 001397f5ef4908ea46a63059439e8c3bf3552d9f 4025185cf953e3f52ab63cf5fec50c1485ee7bb7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/iomap/direct-io.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"74ab376345a5221cbe5c6ada6cad20e46638bca1","status":"affected","version":"001397f5ef4908ea46a63059439e8c3bf3552d9f","versionType":"git"},{"lessThan":"4025185cf953e3f52ab63cf5fec50c1485ee7bb7","status":"affected","version":"001397f5ef4908ea46a63059439e8c3bf3552d9f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/iomap/direct-io.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->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)\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  <TASK>\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  </TASK>\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."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:25:54.482Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/74ab376345a5221cbe5c6ada6cad20e46638bca1"},{"url":"https://git.kernel.org/stable/c/4025185cf953e3f52ab63cf5fec50c1485ee7bb7"}],"title":"iomap: follow the alignment requirement for iomap_dio_hole_iter()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142911","datePublished":"2026-12-03T03:25:54.482Z","dateReserved":"2026-12-03T03:10:28.337Z","dateUpdated":"2026-12-03T03:25:54.482Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:30","lastModifiedDate":"2026-12-03 04:18:30","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142911","Ordinal":"1","Title":"iomap: follow the alignment requirement for iomap_dio_hole_iter(","CVE":"CVE-2026-142911","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142911","Ordinal":"1","NoteData":"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->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)\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  <TASK>\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  </TASK>\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.","Type":"Description","Title":"iomap: follow the alignment requirement for iomap_dio_hole_iter("}]}}}