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

Published May 27, 2026
·
Updated

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

mm/memfdluo: fix physical address conversion in putfolios cleanup

In memfdluoretrievefolios()'s putfolios cleanup path:

1. khorestorefolio() expects a physaddrt (physical address) but receives a raw PFN (pfolio->pfn). This causes khorestorepage() to check the wrong physical address (pfn << PAGESHIFT instead of the actual physical address).

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

Fix by converting PFN to physical address with PFNPHYS() 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

Affected Software

2 affected components
Linux Linux kernel
Linux Linux kernel>=6.19<7.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Operational

    Apply the code-level fix in the kernel source: in mm/memfd_luo (memfd_luo_retrieve_folios()) update the put_folios cleanup path to convert the PFN to a physical address using PFN_PHYS(pfolio->pfn) and add the existing !pfolio->pfn check before processing folios (matching the pattern used elsewhere in the file). Rebuild and deploy the updated kernel (or backport the same changes to your maintained kernel tree) so the fix is in effect.

Event History

May 27, 2026
CVE Published
via MITRE·12:56 PM
Data Sourced
via MITRE·12:56 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203