{"id":"CVE-2026-139217","aliases":["CVE-2026-139217"],"related":[],"kind":"vulnerability","state":"published","title":"ntfs: reject index blocks with a too small entries offset","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:32:40.315Z","modified":"2026-12-01T06:17:39.190Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","fixed":"bae87fc0e80c50f065f1feca232e38e3292be425","status":"affected"},{"type":"git","introduced":"0a8ac0c1fa0b99a5b29002bc7f232ed7eafddef0","fixed":"20e14268ef410cbabff54a79405813a8b9ce8e89","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.1","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bae87fc0e80c50f065f1feca232e38e3292be425","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/20e14268ef410cbabff54a79405813a8b9ce8e89","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139217","url":"https://www.cve.org/CVERecord?id=CVE-2026-139217","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:50.316Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139217","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139217","licence":"Public domain","modified":"2026-12-01T06:17:39.190Z"}],"updatedAt":"2026-12-01T06:32:16.847Z","epss":{"score":0.00185,"percentile":0.08445,"date":"2026-12-01T12:00:22.000Z"}}