{"api_version":"1","generated_at":"2026-11-30T16:05:44+00:00","cve":"CVE-2026-139216","urls":{"html":"https://cve.report/CVE-2026-139216","api":"https://cve.report/api/cve/CVE-2026-139216.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139216","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139216"},"summary":{"title":"ntfs: fix u16 truncation of the update sequence array count check","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix u16 truncation of the update sequence array count check\n\nntfs_check_restart_page_header() bounds the on-disk system page size by\nrecomputing the update sequence array count from it:\n\n\tu16 ra_ofs, usa_count, usa_ofs, usa_end = 0;\n\t...\n\tusa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS);\n\tif (usa_count != le16_to_cpu(rp->usa_count))\n\t\treturn false;\n\nThe right hand side is computed in u32 but stored in a u16, so the count\nwraps once the system page size reaches 0x2000000.  An image claiming any\nlarger power of two passes the check by also claiming usa_count == 1.\n\nNothing else limits the value, so ntfs_check_and_load_restart_page() goes\non to kvzalloc() up to 2 GiB for the restart page and copy that many bytes\na page at a time.  The size is only rejected afterwards, by the\n(size >> NTFS_BLOCK_SIZE_BITS) != usa_count test in post_read_mst_fixup().\n\nCompute the count in a u32 so the existing check rejects an over-large\nsystem page size instead of being defeated by the truncation.  This adds\nno new limit: the array holds one u16 per protected sector plus the update\nsequence number and must end within the first sector, which caps usa_count\nat 240 and the system page size at 64 KiB.\n\nWiden ra_ofs and usa_ofs as well, as ntfs_check_restart_area() already\ndoes: both are loaded from __le16 on-disk fields and every comparison is\nagainst a non-negative value, so no result changes.","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/b713b69cf79ef52b1737a1a6c09df2522ff875af","name":"https://git.kernel.org/stable/c/b713b69cf79ef52b1737a1a6c09df2522ff875af","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0e833b45127032953e2ea6b3659e827dc67e064a","name":"https://git.kernel.org/stable/c/0e833b45127032953e2ea6b3659e827dc67e064a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139216","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139216","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 0e833b45127032953e2ea6b3659e827dc67e064a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1e9ea7e04472d4e5e12e58c881eaacfb3e49b669 b713b69cf79ef52b1737a1a6c09df2522ff875af 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/logfile.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"0e833b45127032953e2ea6b3659e827dc67e064a","status":"affected","version":"1e9ea7e04472d4e5e12e58c881eaacfb3e49b669","versionType":"git"},{"lessThan":"b713b69cf79ef52b1737a1a6c09df2522ff875af","status":"affected","version":"1e9ea7e04472d4e5e12e58c881eaacfb3e49b669","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs/logfile.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: fix u16 truncation of the update sequence array count check\n\nntfs_check_restart_page_header() bounds the on-disk system page size by\nrecomputing the update sequence array count from it:\n\n\tu16 ra_ofs, usa_count, usa_ofs, usa_end = 0;\n\t...\n\tusa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS);\n\tif (usa_count != le16_to_cpu(rp->usa_count))\n\t\treturn false;\n\nThe right hand side is computed in u32 but stored in a u16, so the count\nwraps once the system page size reaches 0x2000000.  An image claiming any\nlarger power of two passes the check by also claiming usa_count == 1.\n\nNothing else limits the value, so ntfs_check_and_load_restart_page() goes\non to kvzalloc() up to 2 GiB for the restart page and copy that many bytes\na page at a time.  The size is only rejected afterwards, by the\n(size >> NTFS_BLOCK_SIZE_BITS) != usa_count test in post_read_mst_fixup().\n\nCompute the count in a u32 so the existing check rejects an over-large\nsystem page size instead of being defeated by the truncation.  This adds\nno new limit: the array holds one u16 per protected sector plus the update\nsequence number and must end within the first sector, which caps usa_count\nat 240 and the system page size at 64 KiB.\n\nWiden ra_ofs and usa_ofs as well, as ntfs_check_restart_area() already\ndoes: both are loaded from __le16 on-disk fields and every comparison is\nagainst a non-negative value, so no result changes."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:39.766Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/0e833b45127032953e2ea6b3659e827dc67e064a"},{"url":"https://git.kernel.org/stable/c/b713b69cf79ef52b1737a1a6c09df2522ff875af"}],"title":"ntfs: fix u16 truncation of the update sequence array count check","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139216","datePublished":"2026-11-30T13:32:39.766Z","dateReserved":"2026-11-30T13:22:15.921Z","dateUpdated":"2026-11-30T13:32:39.766Z","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":"139216","Ordinal":"1","Title":"ntfs: fix u16 truncation of the update sequence array count chec","CVE":"CVE-2026-139216","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139216","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: fix u16 truncation of the update sequence array count check\n\nntfs_check_restart_page_header() bounds the on-disk system page size by\nrecomputing the update sequence array count from it:\n\n\tu16 ra_ofs, usa_count, usa_ofs, usa_end = 0;\n\t...\n\tusa_count = 1 + (logfile_system_page_size >> NTFS_BLOCK_SIZE_BITS);\n\tif (usa_count != le16_to_cpu(rp->usa_count))\n\t\treturn false;\n\nThe right hand side is computed in u32 but stored in a u16, so the count\nwraps once the system page size reaches 0x2000000.  An image claiming any\nlarger power of two passes the check by also claiming usa_count == 1.\n\nNothing else limits the value, so ntfs_check_and_load_restart_page() goes\non to kvzalloc() up to 2 GiB for the restart page and copy that many bytes\na page at a time.  The size is only rejected afterwards, by the\n(size >> NTFS_BLOCK_SIZE_BITS) != usa_count test in post_read_mst_fixup().\n\nCompute the count in a u32 so the existing check rejects an over-large\nsystem page size instead of being defeated by the truncation.  This adds\nno new limit: the array holds one u16 per protected sector plus the update\nsequence number and must end within the first sector, which caps usa_count\nat 240 and the system page size at 64 KiB.\n\nWiden ra_ofs and usa_ofs as well, as ntfs_check_restart_area() already\ndoes: both are loaded from __le16 on-disk fields and every comparison is\nagainst a non-negative value, so no result changes.","Type":"Description","Title":"ntfs: fix u16 truncation of the update sequence array count chec"}]}}}