{"api_version":"1","generated_at":"2026-11-30T18:38:06+00:00","cve":"CVE-2026-139162","urls":{"html":"https://cve.report/CVE-2026-139162","api":"https://cve.report/api/cve/CVE-2026-139162.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139162","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139162"},"summary":{"title":"fs/ntfs3: handle partial allocation in attr_data_get_block_locked()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: handle partial allocation in attr_data_get_block_locked()\n\nWhen allocating clusters for a sparse or compressed attribute in\nattr_data_get_block_locked(), the requested virtual cluster number (vcn0)\nis aligned down to a frame boundary (vcn). The function then attempts to\nallocate a full frame of clusters.\n\nIf the disk is nearly full and highly fragmented, attr_allocate_clusters()\nmight only manage to allocate a small fragment and return success with a\npartial allocation length. If this partial allocation is so small that it\ndoes not even reach the originally requested vcn0 (i.e., end <= vcn0), vcn0\nremains unallocated (a sparse hole).\n\nWhen the code subsequently calls run_lookup_entry() for vcn0, it finds the\noriginal SPARSE_LCN entry, which triggers a WARN_ON(1).\n\nFix this by adding a check to verify if the partial allocation reached\nvcn0. If it did not (vcn0 >= end), treat this as an -ENOSPC failure and\njump to the undo1 label. This safely rolls back the partial allocation,\nrestores the original size, and repacks the runs, leaving the inode in a\nconsistent state before returning the error to the caller.\n\nWARNING: fs/ntfs3/attrib.c:1236 at attr_data_get_block_locked+0x1980/0x25d0\nfs/ntfs3/attrib.c:1236\nRIP: 0010:attr_data_get_block_locked+0x1980/0x25d0 fs/ntfs3/attrib.c:1236\nCall Trace:\n <TASK>\n attr_data_get_block+0x1f1/0x2a0 fs/ntfs3/attrib.c:979\n ntfs_fallocate+0xd3d/0xf70 fs/ntfs3/file.c:670\n vfs_fallocate+0x663/0x7f0 fs/open.c:338\n ksys_fallocate fs/open.c:362 [inline]\n __do_sys_fallocate fs/open.c:367 [inline]\n __se_sys_fallocate fs/open.c:365 [inline]\n __x64_sys_fallocate+0xbf/0x110 fs/open.c:365\n do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\n do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:35","updated_at":"2026-11-30 14:18:35"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/ec67e8d61eb40a4e69b16d8931da217352447367","name":"https://git.kernel.org/stable/c/ec67e8d61eb40a4e69b16d8931da217352447367","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c16a49677579c5591e4355fae1a7240d32f269ec","name":"https://git.kernel.org/stable/c/c16a49677579c5591e4355fae1a7240d32f269ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139162","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139162","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 099ef9ab9203dff327f2d61e44773f9acbc01f13 c16a49677579c5591e4355fae1a7240d32f269ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 099ef9ab9203dff327f2d61e44773f9acbc01f13 ec67e8d61eb40a4e69b16d8931da217352447367 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.0 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/ntfs3/attrib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c16a49677579c5591e4355fae1a7240d32f269ec","status":"affected","version":"099ef9ab9203dff327f2d61e44773f9acbc01f13","versionType":"git"},{"lessThan":"ec67e8d61eb40a4e69b16d8931da217352447367","status":"affected","version":"099ef9ab9203dff327f2d61e44773f9acbc01f13","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs3/attrib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.0"},{"lessThan":"7.0","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":"7.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: handle partial allocation in attr_data_get_block_locked()\n\nWhen allocating clusters for a sparse or compressed attribute in\nattr_data_get_block_locked(), the requested virtual cluster number (vcn0)\nis aligned down to a frame boundary (vcn). The function then attempts to\nallocate a full frame of clusters.\n\nIf the disk is nearly full and highly fragmented, attr_allocate_clusters()\nmight only manage to allocate a small fragment and return success with a\npartial allocation length. If this partial allocation is so small that it\ndoes not even reach the originally requested vcn0 (i.e., end <= vcn0), vcn0\nremains unallocated (a sparse hole).\n\nWhen the code subsequently calls run_lookup_entry() for vcn0, it finds the\noriginal SPARSE_LCN entry, which triggers a WARN_ON(1).\n\nFix this by adding a check to verify if the partial allocation reached\nvcn0. If it did not (vcn0 >= end), treat this as an -ENOSPC failure and\njump to the undo1 label. This safely rolls back the partial allocation,\nrestores the original size, and repacks the runs, leaving the inode in a\nconsistent state before returning the error to the caller.\n\nWARNING: fs/ntfs3/attrib.c:1236 at attr_data_get_block_locked+0x1980/0x25d0\nfs/ntfs3/attrib.c:1236\nRIP: 0010:attr_data_get_block_locked+0x1980/0x25d0 fs/ntfs3/attrib.c:1236\nCall Trace:\n <TASK>\n attr_data_get_block+0x1f1/0x2a0 fs/ntfs3/attrib.c:979\n ntfs_fallocate+0xd3d/0xf70 fs/ntfs3/file.c:670\n vfs_fallocate+0x663/0x7f0 fs/open.c:338\n ksys_fallocate fs/open.c:362 [inline]\n __do_sys_fallocate fs/open.c:367 [inline]\n __se_sys_fallocate fs/open.c:365 [inline]\n __x64_sys_fallocate+0xbf/0x110 fs/open.c:365\n do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\n do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:09.369Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c16a49677579c5591e4355fae1a7240d32f269ec"},{"url":"https://git.kernel.org/stable/c/ec67e8d61eb40a4e69b16d8931da217352447367"}],"title":"fs/ntfs3: handle partial allocation in attr_data_get_block_locked()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139162","datePublished":"2026-11-30T13:32:09.369Z","dateReserved":"2026-11-30T13:22:15.917Z","dateUpdated":"2026-11-30T13:32:09.369Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:35","lastModifiedDate":"2026-11-30 14:18:35","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139162","Ordinal":"1","Title":"fs/ntfs3: handle partial allocation in attr_data_get_block_locke","CVE":"CVE-2026-139162","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139162","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: handle partial allocation in attr_data_get_block_locked()\n\nWhen allocating clusters for a sparse or compressed attribute in\nattr_data_get_block_locked(), the requested virtual cluster number (vcn0)\nis aligned down to a frame boundary (vcn). The function then attempts to\nallocate a full frame of clusters.\n\nIf the disk is nearly full and highly fragmented, attr_allocate_clusters()\nmight only manage to allocate a small fragment and return success with a\npartial allocation length. If this partial allocation is so small that it\ndoes not even reach the originally requested vcn0 (i.e., end <= vcn0), vcn0\nremains unallocated (a sparse hole).\n\nWhen the code subsequently calls run_lookup_entry() for vcn0, it finds the\noriginal SPARSE_LCN entry, which triggers a WARN_ON(1).\n\nFix this by adding a check to verify if the partial allocation reached\nvcn0. If it did not (vcn0 >= end), treat this as an -ENOSPC failure and\njump to the undo1 label. This safely rolls back the partial allocation,\nrestores the original size, and repacks the runs, leaving the inode in a\nconsistent state before returning the error to the caller.\n\nWARNING: fs/ntfs3/attrib.c:1236 at attr_data_get_block_locked+0x1980/0x25d0\nfs/ntfs3/attrib.c:1236\nRIP: 0010:attr_data_get_block_locked+0x1980/0x25d0 fs/ntfs3/attrib.c:1236\nCall Trace:\n <TASK>\n attr_data_get_block+0x1f1/0x2a0 fs/ntfs3/attrib.c:979\n ntfs_fallocate+0xd3d/0xf70 fs/ntfs3/file.c:670\n vfs_fallocate+0x663/0x7f0 fs/open.c:338\n ksys_fallocate fs/open.c:362 [inline]\n __do_sys_fallocate fs/open.c:367 [inline]\n __se_sys_fallocate fs/open.c:365 [inline]\n __x64_sys_fallocate+0xbf/0x110 fs/open.c:365\n do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]\n do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n </TASK>","Type":"Description","Title":"fs/ntfs3: handle partial allocation in attr_data_get_block_locke"}]}}}