# CVE-2026-99995: ntfs: add a runlist merge that leaves the source runlist to the caller

- 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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:58.911Z
- Modified: 2026-11-30T14:20:42.800Z
- Assigned by: Linux

## Description

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

ntfs: add a runlist merge that leaves the source runlist to the caller

ntfs_runlists_merge() frees the source runlist once its runs are in the
destination.  A caller that may have to undo the merge then has to work
out its runs again from the merged runlist, where the first and the
last of them may have been coalesced with neighbouring runs.

Add ntfs_runlists_merge_keep_src(), which neither modifies nor frees
the source runlist.  For that, ntfs_rl_append() and ntfs_rl_replace()
now merge the right-hand end into the copied run in the destination
instead of into the last source run before copying it, and the merge
helpers take the source as const, so the compiler checks that none of
them writes to it.  The merged runlist is the same as before.

For every caller, a source runlist without any mapped run, which the
merge already warns about, now fails with -EINVAL instead of carrying
on with nothing to insert: with no run copied, the right-hand merge
into the destination would index before the insertion point.

The next patch uses ntfs_runlists_merge_keep_src() to free exactly the
clusters it allocated when it has to undo an $MFT data extension.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0b81032b9273a895d8c093cbb08fef8024ac3128; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c6ee0986b80715c44d547e9cbdc1a72ad855071c; before 7.3.4 (not affected: from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/0b81032b9273a895d8c093cbb08fef8024ac3128>
- <https://git.kernel.org/stable/c/c6ee0986b80715c44d547e9cbdc1a72ad855071c>

## Sources

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

---

Page: https://cve.day/CVE-2026-99995 · Whole record: https://cve.day/CVE-2026-99995.json · Rebuilt by cve.day 2026-11-30T14:33:46.120Z
