{"id":"CVE-2026-90117","aliases":["CVE-2026-90117"],"related":[],"kind":"vulnerability","state":"published","title":"ntfs: validate usa_ofs before preserving the update sequence number","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: validate usa_ofs before preserving the update sequence number\n\nWhen ntfs_mft_record_alloc() reuses a free mft record it reads the old\nupdate sequence number straight from the on-disk record:\n\n     usn = *(__le16 *)((u8 *)m + le16_to_cpu(m->usa_ofs));\n\nHere m points into the raw $MFT page-cache folio, which still holds\nunvalidated, MST-protected bytes: the folio is read by a plain\niomap_read_folio() and neither post_read_mst_fixup() nor\nntfs_mft_record_check() has run on it (both work on private copies).\nm->usa_ofs is therefore an untrusted u16, and a corrupted record can put\nit past the end of the record so the two-byte read lands outside the\nfolio.  Reading such a record while creating a file gives, under KASAN:\n\n   BUG: KASAN: use-after-free in ntfs_mft_record_alloc+...\n   Read of size 2 at addr ...\n    ntfs_mft_record_alloc -> __ntfs_create -> ntfs_create -> path_openat\n\nOnly preserve the old update sequence number when usa_ofs is even and in\nrange, mirroring the check ntfs_mft_record_check() already applies;\notherwise leave usn zero, which the existing restore below skips.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nntfs: validate usa_ofs before preserving the update sequence number\n\nWhen ntfs_mft_record_alloc() reuses a free mft record it reads the old\nupdate sequence number straight from the on-disk record:\n\n     usn = *(__le16 *)((u8 *)m + le16_to_cpu(m->usa_ofs));\n\nHere m points into the raw $MFT page-cache folio, which still holds\nunvalidated, MST-protected bytes: the folio is read by a plain\niomap_read_folio() and neither post_read_mst_fixup() nor\nntfs_mft_record_check() has run on it (both work on private copies).\nm->usa_ofs is therefore an untrusted u16, and a corrupted record can put\nit past the end of the record so the two-byte read lands outside the\nfolio.  Reading such a record while creating a file gives, under KASAN:\n\n   BUG: KASAN: use-after-free in ntfs_mft_record_alloc+...\n   Read of size 2 at addr ...\n    ntfs_mft_record_alloc -> __ntfs_create -> ntfs_create -> path_openat\n\nOnly preserve the old update sequence number when usa_ofs is even and in\nrange, mirroring the check ntfs_mft_record_check() already applies;\notherwise leave usn zero, which the existing restore below skips.","source":"cvelist"}],"published":"2026-09-17T16:06:22.705Z","modified":"2026-10-19T09:19:01.183Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"495e90fa334828d4119061e2726af51d0a0fb4ed","fixed":"ea5a3c30710710c1dc5e483d3313309ec2e868f7","status":"affected"},{"type":"git","introduced":"495e90fa334828d4119061e2726af51d0a0fb4ed","fixed":"81684340963da2e898eabb8c1e274433d9375bc6","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.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/ea5a3c30710710c1dc5e483d3313309ec2e868f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81684340963da2e898eabb8c1e274433d9375bc6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90117","url":"https://www.cve.org/CVERecord?id=CVE-2026-90117","licence":"CVE Terms of Use","modified":"2026-10-19T08:58:15.750Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90117","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90117","licence":"Public domain","modified":"2026-10-19T09:19:01.183Z"}],"updatedAt":"2026-11-25T22:59:39.309Z","epss":{"score":0.00189,"percentile":0.08958,"date":"2026-12-01T12:00:22.000Z"}}