{"id":"CVE-2026-46013","aliases":["CVE-2026-46013"],"related":[],"kind":"vulnerability","state":"published","title":"mm/memfd_luo: fix physical address conversion in put_folios cleanup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memfd_luo: fix physical address conversion in put_folios cleanup\n\nIn memfd_luo_retrieve_folios()'s put_folios cleanup path:\n\n1. kho_restore_folio() expects a phys_addr_t (physical address) but\n   receives a raw PFN (pfolio->pfn). This causes kho_restore_page() to\n   check the wrong physical address (pfn << PAGE_SHIFT instead of the\n   actual physical address).\n\n2. This loop lacks the !pfolio->pfn check that exists in the main\n   retrieval loop and memfd_luo_discard_folios(), which could\n   incorrectly process sparse file holes where pfn=0.\n\nFix by converting PFN to physical address with PFN_PHYS() and adding\nthe !pfolio->pfn check, matching the pattern used elsewhere in this file.\n\nThis issue was identified by the AI review.\nhttps://sashiko.dev/#/patchset/20260323110747.193569-1-duanchenghao@kylinos.cn","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/memfd_luo: fix physical address conversion in put_folios cleanup\n\nIn memfd_luo_retrieve_folios()'s put_folios cleanup path:\n\n1. kho_restore_folio() expects a phys_addr_t (physical address) but\n   receives a raw PFN (pfolio->pfn). This causes kho_restore_page() to\n   check the wrong physical address (pfn << PAGE_SHIFT instead of the\n   actual physical address).\n\n2. This loop lacks the !pfolio->pfn check that exists in the main\n   retrieval loop and memfd_luo_discard_folios(), which could\n   incorrectly process sparse file holes where pfn=0.\n\nFix by converting PFN to physical address with PFN_PHYS() and adding\nthe !pfolio->pfn check, matching the pattern used elsewhere in this file.\n\nThis issue was identified by the AI review.\nhttps://sashiko.dev/#/patchset/20260323110747.193569-1-duanchenghao@kylinos.cn","source":"cvelist"}],"published":"2026-05-27T12:56:15.236Z","modified":"2026-06-17T10:52:53.950Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b3749f174d686627f702234e64bad976dc432dbc","fixed":"bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9","status":"affected"},{"type":"git","introduced":"b3749f174d686627f702234e64bad976dc432dbc","fixed":"3538f90ab89aaf302782b4b073a0aae66904cd67","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3538f90ab89aaf302782b4b073a0aae66904cd67","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46013","url":"https://www.cve.org/CVERecord?id=CVE-2026-46013","licence":"CVE Terms of Use","modified":"2026-06-14T17:47:59.320Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46013","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46013","licence":"Public domain","modified":"2026-06-17T10:52:53.950Z"}],"updatedAt":"2026-11-25T22:59:22.545Z","epss":{"score":0.00107,"percentile":0.01262,"date":"2026-12-01T12:00:22.000Z"}}