{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b3749f174d686627f702234e64bad976dc432dbc"
            },
            {
              "fixed": "bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9"
            },
            {
              "fixed": "3538f90ab89aaf302782b4b073a0aae66904cd67"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46013.json"
  },
  "details": "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-\u003epfn). This causes kho_restore_page() to\n   check the wrong physical address (pfn \u003c\u003c PAGE_SHIFT instead of the\n   actual physical address).\n\n2. This loop lacks the !pfolio-\u003epfn 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-\u003epfn 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",
  "id": "CVE-2026-46013",
  "modified": "2026-08-12T03:51:10.284536219Z",
  "published": "2026-05-27T12:56:15.236Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3538f90ab89aaf302782b4b073a0aae66904cd67"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd0d6bde286a2b8e3ae7975b0dcc2d43875d5fc9"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46013.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46013"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "mm/memfd_luo: fix physical address conversion in put_folios cleanup"
}