# CVE-2026-90117: ntfs: validate usa_ofs before preserving the update sequence number

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-17T16:06:22.705Z
- Modified: 2026-10-19T09:19:01.183Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ntfs: validate usa_ofs before preserving the update sequence number

When ntfs_mft_record_alloc() reuses a free mft record it reads the old
update sequence number straight from the on-disk record:

     usn = *(__le16 *)((u8 *)m + le16_to_cpu(m->usa_ofs));

Here m points into the raw $MFT page-cache folio, which still holds
unvalidated, MST-protected bytes: the folio is read by a plain
iomap_read_folio() and neither post_read_mst_fixup() nor
ntfs_mft_record_check() has run on it (both work on private copies).
m->usa_ofs is therefore an untrusted u16, and a corrupted record can put
it past the end of the record so the two-byte read lands outside the
folio.  Reading such a record while creating a file gives, under KASAN:

   BUG: KASAN: use-after-free in ntfs_mft_record_alloc+...
   Read of size 2 at addr ...
    ntfs_mft_record_alloc -> __ntfs_create -> ntfs_create -> path_openat

Only preserve the old update sequence number when usa_ofs is even and in
range, mirroring the check ntfs_mft_record_check() already applies;
otherwise leave usn zero, which the existing restore below skips.

(As written by CVE List.)

## Affected

- Linux Linux: from 495e90fa334828d4119061e2726af51d0a0fb4ed before ea5a3c30710710c1dc5e483d3313309ec2e868f7; from 495e90fa334828d4119061e2726af51d0a0fb4ed before 81684340963da2e898eabb8c1e274433d9375bc6; 7.1 (not affected: before 7.1; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/ea5a3c30710710c1dc5e483d3313309ec2e868f7>
- <https://git.kernel.org/stable/c/81684340963da2e898eabb8c1e274433d9375bc6>

## Sources

- CVE List: [CVE-2026-90117](https://www.cve.org/CVERecord?id=CVE-2026-90117), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-90117](https://nvd.nist.gov/vuln/detail/CVE-2026-90117), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-90117 · Whole record: https://cve.day/CVE-2026-90117.json · Rebuilt by cve.day 2026-11-25T22:59:39.309Z
