{
  "id": "CVE-2026-31589",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31589",
  "published_at": "2026-04-24T14:42:16.955Z",
  "title": "mm: call -\u003efree_folio() directly in folio_unmap_invalidate()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm: call -\u003efree_folio() directly in folio_unmap_invalidate()\n\nWe can only call filemap_free_folio() if we have a reference to (or hold a\nlock on) the mapping.  Otherwise, we've already removed the folio from the\nmapping so it no longer pins the mapping and the mapping can be removed,\ncausing a use-after-free when accessing mapping-\u003ea_ops.\n\nFollow the same pattern as __remove_mapping() and load the free_folio\nfunction pointer before dropping the lock on the mapping.  That lets us\nmake filemap_free_folio() static as this was the only caller outside\nfilemap.c.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= fb7d3bc4149395c1ae99029c852eab6c28fc3c88, \u003c efc52947247a21bbf79059539bbbd40f4ea76f00",
          "\u003e= fb7d3bc4149395c1ae99029c852eab6c28fc3c88, \u003c b667df39d98a7a24be7c2a40ff0863dac1ad2cd7",
          "\u003e= fb7d3bc4149395c1ae99029c852eab6c28fc3c88, \u003c c330e65ea59c4805d6ab6757c4ddfe8c63acef31",
          "\u003e= fb7d3bc4149395c1ae99029c852eab6c28fc3c88, \u003c 615d9bb2ccad42f9e21d837431e401db2e471195"
        ],
        "fixed_in": [
          "efc52947247a21bbf79059539bbbd40f4ea76f00",
          "b667df39d98a7a24be7c2a40ff0863dac1ad2cd7",
          "c330e65ea59c4805d6ab6757c4ddfe8c63acef31",
          "615d9bb2ccad42f9e21d837431e401db2e471195"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.18.27",
          "6.19.14",
          "7.0.1",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to efc52947247a21bbf79059539bbbd40f4ea76f00 or b667df39d98a7a24be7c2a40ff0863dac1ad2cd7 or c330e65ea59c4805d6ab6757c4ddfe8c63acef31 or 615d9bb2ccad42f9e21d837431e401db2e471195 or later.",
      "Upgrade Linux to 0 or 6.18.27 or 6.19.14 or 7.0.1 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
