{"api_version":"1","generated_at":"2026-11-30T16:05:44+00:00","cve":"CVE-2026-139217","urls":{"html":"https://cve.report/CVE-2026-139217","api":"https://cve.report/api/cve/CVE-2026-139217.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139217","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139217"},"summary":{"title":"ntfs: reject index blocks with a too small entries offset","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: reject index blocks with a too small entries offset\n\nIndex blocks read from the volume are checked for a plausible header, but\nnothing keeps a block from placing its entries closer to the header than\nntfs_ib_alloc() does when it creates one.  The allocation adds the update\nsequence array, one entry per 512-byte sector plus the terminator, to the\nindex header and aligns the result to 8 bytes, so the first entry of a\n4096-byte block starts at offset 40, while a corrupt block may declare 16.\n\nntfs_ib_copy_tail() then copies the entries that follow the median entry\nfrom the source block into a freshly allocated destination.  The tail is\nsized as index_length minus entries_offset and the median entry, both from\nthe source, while the destination only has allocated_size minus the\ncanonical offset of room.  With the values above the tail is 4040 bytes\nand the destination holds 4032, so the last 8 bytes are written past the\nend of the new allocation, with contents taken from the mounted image.\n\nReject such a block when it is read: entries_offset must not be smaller\nthan the canonical offset for the block size.  Derive it from block_size\nrather than from the block's own usa_count, which post_read_mst_fixup()\ntreats as \"not protected\" when it does not match the block size, and use\nthe same helper in ntfs_ib_alloc() so both stay in sync.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:41","updated_at":"2026-11-30 14:18:41"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/20e14268ef410cbabff54a79405813a8b9ce8e89","name":"https://git.kernel.org/stable/c/20e14268ef410cbabff54a79405813a8b9ce8e89","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bae87fc0e80c50f065f1feca232e38e3292be425","name":"https://git.kernel.org/stable/c/bae87fc0e80c50f065f1feca232e38e3292be425","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139217","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139217","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 bae87fc0e80c50f065f1feca232e38e3292be425 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0 20e14268ef410cbabff54a79405813a8b9ce8e89 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 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/ntfs/index.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bae87fc0e80c50f065f1feca232e38e3292be425","status":"affected","version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","versionType":"git"},{"lessThan":"20e14268ef410cbabff54a79405813a8b9ce8e89","status":"affected","version":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs/index.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.1"},{"lessThan":"7.1","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.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: reject index blocks with a too small entries offset\n\nIndex blocks read from the volume are checked for a plausible header, but\nnothing keeps a block from placing its entries closer to the header than\nntfs_ib_alloc() does when it creates one.  The allocation adds the update\nsequence array, one entry per 512-byte sector plus the terminator, to the\nindex header and aligns the result to 8 bytes, so the first entry of a\n4096-byte block starts at offset 40, while a corrupt block may declare 16.\n\nntfs_ib_copy_tail() then copies the entries that follow the median entry\nfrom the source block into a freshly allocated destination.  The tail is\nsized as index_length minus entries_offset and the median entry, both from\nthe source, while the destination only has allocated_size minus the\ncanonical offset of room.  With the values above the tail is 4040 bytes\nand the destination holds 4032, so the last 8 bytes are written past the\nend of the new allocation, with contents taken from the mounted image.\n\nReject such a block when it is read: entries_offset must not be smaller\nthan the canonical offset for the block size.  Derive it from block_size\nrather than from the block's own usa_count, which post_read_mst_fixup()\ntreats as \"not protected\" when it does not match the block size, and use\nthe same helper in ntfs_ib_alloc() so both stay in sync."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:40.315Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bae87fc0e80c50f065f1feca232e38e3292be425"},{"url":"https://git.kernel.org/stable/c/20e14268ef410cbabff54a79405813a8b9ce8e89"}],"title":"ntfs: reject index blocks with a too small entries offset","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139217","datePublished":"2026-11-30T13:32:40.315Z","dateReserved":"2026-11-30T13:22:15.921Z","dateUpdated":"2026-11-30T13:32:40.315Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:41","lastModifiedDate":"2026-11-30 14:18:41","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139217","Ordinal":"1","Title":"ntfs: reject index blocks with a too small entries offset","CVE":"CVE-2026-139217","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139217","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: reject index blocks with a too small entries offset\n\nIndex blocks read from the volume are checked for a plausible header, but\nnothing keeps a block from placing its entries closer to the header than\nntfs_ib_alloc() does when it creates one.  The allocation adds the update\nsequence array, one entry per 512-byte sector plus the terminator, to the\nindex header and aligns the result to 8 bytes, so the first entry of a\n4096-byte block starts at offset 40, while a corrupt block may declare 16.\n\nntfs_ib_copy_tail() then copies the entries that follow the median entry\nfrom the source block into a freshly allocated destination.  The tail is\nsized as index_length minus entries_offset and the median entry, both from\nthe source, while the destination only has allocated_size minus the\ncanonical offset of room.  With the values above the tail is 4040 bytes\nand the destination holds 4032, so the last 8 bytes are written past the\nend of the new allocation, with contents taken from the mounted image.\n\nReject such a block when it is read: entries_offset must not be smaller\nthan the canonical offset for the block size.  Derive it from block_size\nrather than from the block's own usa_count, which post_read_mst_fixup()\ntreats as \"not protected\" when it does not match the block size, and use\nthe same helper in ntfs_ib_alloc() so both stay in sync.","Type":"Description","Title":"ntfs: reject index blocks with a too small entries offset"}]}}}