# CVE-2026-98138: ntfs: do not mark the volume clean in sync_fs when errors were recorded

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.14%, higher than 2% of CVEs (2026-11-29)
- Published: 2026-09-25T10:36:15.349Z
- Modified: 2026-10-19T10:18:13.003Z
- Assigned by: Linux

## Description

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

ntfs: do not mark the volume clean in sync_fs when errors were recorded

ntfs_put_super() and the remount-read-only path both clear the dirty bit
only when NVolErrors(vol) is false. ntfs_sync_fs() clears it
unconditionally, so any sync() on a volume that recorded an error marks
that volume clean. A volume without this set is then seen as not needing
recovery and it does not run one, so whatever went wrong is never repaired.

This change skips resetting the dirty bit when there are volume errors.

Reproduced on a volume whose $MFTMirr does not match $MFT, which sets the
error flag while leaving the mount read-write: after a write and a sync,
the on-disk volume flags read 0x0000 with this driver and 0x0001 with the
guard in place.

(As written by CVE List.)

## Affected

- Linux Linux: from 6251f0b0de7d645e3591931ca4c11d8322c1866f before ca1f9933eff777a604eb664d0f9ae433b8664cbf; from 6251f0b0de7d645e3591931ca4c11d8322c1866f before 0e4c839905418d55bafe571a92533a1d1ac7b0a8; 7.1 (not affected: before 7.1; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 7.1 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/ca1f9933eff777a604eb664d0f9ae433b8664cbf> (patch)
- <https://git.kernel.org/stable/c/0e4c839905418d55bafe571a92533a1d1ac7b0a8> (patch)

## Sources

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

---

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