# CVE-2026-142795: mm: khugepaged: fix folio is used after folio\_put/unlock()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:27.741Z
- **Modified:** 2026-12-03T04:18:12.937Z

## Who should check

- Anyone running Linux \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 967e196ee22611ebe5cd4436b71b577994ee7cb9; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< c08e076cb1976942a4bfcbc1c4dff76addd51fc7; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 325da0365ffa4f19ca50a9be2931a18bb252c07a; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4
- Anyone running Linux 6.2

## Description

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

mm: khugepaged: fix folio is used after folio\_put/unlock()

On the rollback path, folio\_put() has already dropped the last reference
of new\_folio.  On the success path, new\_folio is already unlocked and can
be freed concurrently.  The trace\_mm\_khugepaged\_collapse\_file() is left
with a dangling folio pointer.

So using the folio\_pfn() before dropping the reference, closing
use-after-free window.

## Affected and fixed versions

- Linux: \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 967e196ee22611ebe5cd4436b71b577994ee7cb9; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< c08e076cb1976942a4bfcbc1c4dff76addd51fc7; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 325da0365ffa4f19ca50a9be2931a18bb252c07a; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4 (cvelist)
- Linux: 6.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142795.md
Affected: Linux >= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, < 967e196ee22611ebe5cd4436b71b577994ee7cb9; >= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, < c08e076cb1976942a4bfcbc1c4dff76addd51fc7; >= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, < 325da0365ffa4f19ca50a9be2931a18bb252c07a; >= 4c9473e87e75a2a77ccd02e…
Fixed in: Linux 967e196ee22611ebe5cd4436b71b577994ee7cb9, Linux 325da0365ffa4f19ca50a9be2931a18bb252c07a, Linux 0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0, Linux 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142795 being exploited?

There is no confirmed exploitation: CVE-2026-142795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142795?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142795?

Linux \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 967e196ee22611ebe5cd4436b71b577994ee7cb9; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< c08e076cb1976942a4bfcbc1c4dff76addd51fc7; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 325da0365ffa4f19ca50a9be2931a18bb252c07a; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0; \>= 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6, \< 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4; Linux 6.2.

### Is there a fix for CVE-2026-142795?

Yes. Fixed in Linux 967e196ee22611ebe5cd4436b71b577994ee7cb9, Linux 325da0365ffa4f19ca50a9be2931a18bb252c07a, Linux 0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0, Linux 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4. Upgrade Linux to 9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4 or later.

### How do I check if I'm affected by CVE-2026-142795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/967e196ee22611ebe5cd4436b71b577994ee7cb9>
- other: <https://git.kernel.org/stable/c/c08e076cb1976942a4bfcbc1c4dff76addd51fc7>
- other: <https://git.kernel.org/stable/c/325da0365ffa4f19ca50a9be2931a18bb252c07a>
- other: <https://git.kernel.org/stable/c/0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0>
- other: <https://git.kernel.org/stable/c/9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142795>

HTML: <https://flawdb.com/CVE-2026-142795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142795>
