# CVE-2026-98140: ntfs: fix kmap_local leak in write_mft_record_nolock() error paths

- 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-30)
- Published: 2026-09-25T10:36:16.580Z
- Modified: 2026-10-26T18:36:28.473Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

ntfs: fix kmap_local leak in write_mft_record_nolock() error paths

write_mft_record_nolock() maps the MFT record folio with
kmap_local_folio(), but the pre_write_mst_fixup() and
bio_add_folio() failure paths jump to the error label without
unmapping it. kmap_local mappings are stack-ordered per task, so
leaking one corrupts the nesting for any outer mapping.

Unmap the folio on those error paths too.

(As written by CVE List.)

## Affected

- Linux Linux: from 115380f9a2f9675c7924563cbba70d40cae8fb81 before 5d7f7bf8fba8cf563b42b44aa4ab3d9928ac480c; from 115380f9a2f9675c7924563cbba70d40cae8fb81 before cf06dcd572845723821b54a608fc2da995c3c8e2; 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/5d7f7bf8fba8cf563b42b44aa4ab3d9928ac480c> (patch)
- <https://git.kernel.org/stable/c/cf06dcd572845723821b54a608fc2da995c3c8e2> (patch)

## Sources

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

---

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