{
  "id": "CVE-2026-31471",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31471",
  "published_at": "2026-04-22T13:53:59.595Z",
  "title": "xfrm: iptfs: only publish mode_data after clone setup",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/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\nxfrm: iptfs: only publish mode_data after clone setup\n\niptfs_clone_state() stores x-\u003emode_data before allocating the reorder\nwindow. If that allocation fails, the code frees the cloned state and\nreturns -ENOMEM, leaving x-\u003emode_data pointing at freed memory.\n\nThe xfrm clone unwind later runs destroy_state() through x-\u003emode_data,\nso the failed clone path tears down IPTFS state that clone_state()\nalready freed.\n\nKeep the cloned IPTFS state private until all allocations succeed so\nfailed clones leave x-\u003emode_data unset. The destroy path already\nhandles a NULL mode_data pointer.",
  "cwe": "CWE-415",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 6be02e3e4f376fea468846c8562655ca5ee18204, \u003c 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1",
          "\u003e= 6be02e3e4f376fea468846c8562655ca5ee18204, \u003c 5784a1e2889c9525a8f036cb586930e232170bf7",
          "\u003e= 6be02e3e4f376fea468846c8562655ca5ee18204, \u003c d849a2f7309fc0616e79d13b008b0a47e0458b6e"
        ],
        "fixed_in": [
          "371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1",
          "5784a1e2889c9525a8f036cb586930e232170bf7",
          "d849a2f7309fc0616e79d13b008b0a47e0458b6e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1 or 5784a1e2889c9525a8f036cb586930e232170bf7 or d849a2f7309fc0616e79d13b008b0a47e0458b6e or later.",
      "Upgrade Linux to 0 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
