# CVE-2025-68293: mm/huge_memory: fix NULL pointer deference when splitting folio

- 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.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2025-12-16T15:06:13.428Z
- Modified: 2026-10-14T16:10:00.250Z
- Assigned by: Linux

## Description

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

mm/huge_memory: fix NULL pointer deference when splitting folio

Commit c010d47f107f ("mm: thp: split huge page to any lower order pages")
introduced an early check on the folio's order via mapping->flags before
proceeding with the split work.

This check introduced a bug: for shmem folios in the swap cache and
truncated folios, the mapping pointer can be NULL.  Accessing
mapping->flags in this state leads directly to a NULL pointer dereference.

This commit fixes the issue by moving the check for mapping != NULL before
any attempt to access mapping->flags.

(As written by CVE List.)

## Affected

- Linux Linux: from c010d47f107f609b9f4d6a103b6dfc53889049e9 before 592db83615a9f0164472ec789c2ed34ad35f732f; from c010d47f107f609b9f4d6a103b6dfc53889049e9 before d1b83fbacd4397a1d2f8c6b13427a8636ae2b307; from c010d47f107f609b9f4d6a103b6dfc53889049e9 before cff47b9e39a6abf03dde5f4f156f841b0c54bba0; 6.9 (not affected: before 6.9; from 6.12.61 up to 6.12.*; from 6.17.11 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/592db83615a9f0164472ec789c2ed34ad35f732f>
- <https://git.kernel.org/stable/c/d1b83fbacd4397a1d2f8c6b13427a8636ae2b307>
- <https://git.kernel.org/stable/c/cff47b9e39a6abf03dde5f4f156f841b0c54bba0>

## Sources

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

---

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