# CVE-2026-45864: fs/ntfs3: prevent infinite loops caused by the next valid being the same

- 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.16%, higher than 5% of CVEs (2026-12-02)
- Published: 2026-05-27T12:15:43.807Z
- Modified: 2026-06-25T21:07:13.457Z
- Weaknesses: CWE-835
- Assigned by: Linux

## Description

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

fs/ntfs3: prevent infinite loops caused by the next valid being the same

When processing valid within the range [valid : pos), if valid cannot
be retrieved correctly, for example, if the retrieved valid value is
always the same, this can trigger a potential infinite loop, similar
to the hung problem reported by syzbot [1].

Adding a check for the valid value within the loop body, and terminating
the loop and returning -EINVAL if the value is the same as the current
value, can prevent this.

[1]
INFO: task syz.4.21:6056 blocked for more than 143 seconds.
Call Trace:
 rwbase_write_lock+0x14f/0x750 kernel/locking/rwbase_rt.c:244
 inode_lock include/linux/fs.h:1027 [inline]
 ntfs_file_write_iter+0xe6/0x870 fs/ntfs3/file.c:1284

(As written by CVE List.)

## Affected

- Linux Linux: from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 50c822fcb36768f1fb356f05b02a2248ef81936d; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 6d93239b4fc479f7c0a412dd196ec0ca2672d14a; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 71c8b966ec56e13c02388c1312910588bb49be7a; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before b97e371e5d1c13d722335d46eb8bc1a22b272a0e; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 4bf3bafb8e0635ed93e3cd4156dcbcc0fb960cb4; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before a47a2bb9aa6455d5cee1045814a60c749309c92b; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 27b75ca4e51e3e4554dc85dbf1a0246c66106fd3; 5.15 (not affected: before 5.15; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.15 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/50c822fcb36768f1fb356f05b02a2248ef81936d> (patch)
- <https://git.kernel.org/stable/c/6d93239b4fc479f7c0a412dd196ec0ca2672d14a> (patch)
- <https://git.kernel.org/stable/c/71c8b966ec56e13c02388c1312910588bb49be7a> (patch)
- <https://git.kernel.org/stable/c/b97e371e5d1c13d722335d46eb8bc1a22b272a0e> (patch)
- <https://git.kernel.org/stable/c/4bf3bafb8e0635ed93e3cd4156dcbcc0fb960cb4> (patch)
- <https://git.kernel.org/stable/c/a47a2bb9aa6455d5cee1045814a60c749309c92b> (patch)
- <https://git.kernel.org/stable/c/27b75ca4e51e3e4554dc85dbf1a0246c66106fd3> (patch)

## Sources

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

---

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