{
  "id": "CVE-2026-53240",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53240",
  "published_at": "2026-06-25T08:39:35.809Z",
  "title": "xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/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: fix use-after-free on first_skb in __input_process_payload\n\n__input_process_payload() stores first_skb into xtfs-\u003era_newskb under\ndrop_lock when starting partial reassembly, then unlocks and breaks out\nof the processing loop. The post-loop check reads xtfs-\u003era_newskb\nwithout the lock to decide whether first_skb is still owned:\n\n    if (first_skb \u0026\u0026 first_iplen \u0026\u0026 !defer \u0026\u0026 first_skb != xtfs-\u003era_newskb)\n\nBetween spin_unlock and this read, a concurrent CPU running\niptfs_reassem_cont() (or the drop_timer hrtimer) can complete\nreassembly, NULL xtfs-\u003era_newskb, and free the skb. The check then\nevaluates first_skb != NULL as true, and pskb_trim/ip_summed/consume_skb\noperate on the freed skb — a use-after-free in skbuff_head_cache.\n\nReplace the unlocked read with a local bool that records whether\nfirst_skb was handed to the reassembly state in the current call. The\nflag is set after the existing spin_unlock, before the break, using the\npointer equality that is stable at that point (first_skb == skb iff\nfirst_skb was stored in ra_newskb).",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 3f3339885fb343b7b42d7c34717108ce07da24ae, \u003c 8d9a79fbf5172d9c4c0146057af2360913265a11",
          "\u003e= 3f3339885fb343b7b42d7c34717108ce07da24ae, \u003c ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198",
          "\u003e= 3f3339885fb343b7b42d7c34717108ce07da24ae, \u003c eb48730bb827d1550401a5d391903f9d90b493c8"
        ],
        "fixed_in": [
          "8d9a79fbf5172d9c4c0146057af2360913265a11",
          "ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198",
          "eb48730bb827d1550401a5d391903f9d90b493c8"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.18.36",
          "7.0.13",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 8d9a79fbf5172d9c4c0146057af2360913265a11 or ff2ee35b6ce5fa8a8e24ea50b15733d5c8780198 or eb48730bb827d1550401a5d391903f9d90b493c8 or later.",
      "Upgrade Linux to 0 or 6.18.36 or 7.0.13 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
