# CVE-2026-46013: mm/memfd_luo: fix physical address conversion in put_folios cleanup

- 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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-27T12:56:15.236Z
- Modified: 2026-06-17T10:52:53.950Z
- Assigned by: Linux

## Description

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

mm/memfd_luo: fix physical address conversion in put_folios cleanup

In memfd_luo_retrieve_folios()'s put_folios cleanup path:

1. kho_restore_folio() expects a phys_addr_t (physical address) but
   receives a raw PFN (pfolio->pfn). This causes kho_restore_page() to
   check the wrong physical address (pfn << PAGE_SHIFT instead of the
   actual physical address).

2. This loop lacks the !pfolio->pfn check that exists in the main
   retrieval loop and memfd_luo_discard_folios(), which could
   incorrectly process sparse file holes where pfn=0.

Fix by converting PFN to physical address with PFN_PHYS() and adding
the !pfolio->pfn check, matching the pattern used elsewhere in this file.

This issue was identified by the AI review.
https://sashiko.dev/#/patchset/20260323110747.193569-1-duanchenghao@kylinos.cn

(As written by CVE List.)

## Affected

- Linux Linux: from b3749f174d686627f702234e64bad976dc432dbc before bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9; from b3749f174d686627f702234e64bad976dc432dbc before 3538f90ab89aaf302782b4b073a0aae66904cd67; 6.19 (not affected: before 6.19; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.19 before 7.0.4

## References

- <https://git.kernel.org/stable/c/bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9> (patch)
- <https://git.kernel.org/stable/c/3538f90ab89aaf302782b4b073a0aae66904cd67> (patch)

## Sources

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

---

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