{
  "id": "CVE-2026-53239",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53239",
  "published_at": "2026-06-25T08:39:35.149Z",
  "title": "xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()",
  "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: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()\n\nFix the race by pruning the bin while still holding xfrm_policy_lock,\nbefore dropping it. Use __xfrm_policy_inexact_prune_bin() directly since\nthe lock is already held. The wrapper xfrm_policy_inexact_prune_bin()\nbecomes unused and is removed.\n\nRace:\n\n  CPU0 (XFRM_MSG_DELPOLICY)           CPU1 (XFRM_MSG_NEWSPDINFO)\n  ==========================          ==========================\n  xfrm_policy_bysel_ctx():\n    spin_lock_bh(xfrm_policy_lock)\n    bin = xfrm_policy_inexact_lookup()\n    __xfrm_policy_unlink(pol)\n    spin_unlock_bh(xfrm_policy_lock)\n    xfrm_policy_kill(ret)\n    // wide window, lock not held\n                                       xfrm_hash_rebuild():\n                                         spin_lock_bh(xfrm_policy_lock)\n                                         __xfrm_policy_inexact_flush():\n                                           kfree_rcu(bin)  // bin freed\n                                         spin_unlock_bh(xfrm_policy_lock)\n    xfrm_policy_inexact_prune_bin(bin)\n    // UAF: bin is freed",
  "cwe": "CWE-362",
  "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": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c 8fc536e9f6856230f19c7d13e71af064b6a77b22",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c c4c1ea36d83bf3c4569468ca5b8b614fda1bf821",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c 42827d03f8009a6a218bacab153e21f39d6a121c",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c 88697cf980222d5906a37bf47662dac0732e2a0f",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c b5316e2b8614a87d8736941972441cb47bfd4491",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c ec82ea4eb220164d854f8734ca5a35e23e577b94",
          "\u003e= 6be3b0db6db82cf056a72cc18042048edd27f8ee, \u003c 7f2d76c9c03257c0782afef9d95321fa04096f60"
        ],
        "fixed_in": [
          "8fc536e9f6856230f19c7d13e71af064b6a77b22",
          "c4c1ea36d83bf3c4569468ca5b8b614fda1bf821",
          "25c8c7fb3b0b9668c7d05e209f58c158d2b020c7",
          "42827d03f8009a6a218bacab153e21f39d6a121c",
          "88697cf980222d5906a37bf47662dac0732e2a0f",
          "b5316e2b8614a87d8736941972441cb47bfd4491",
          "ec82ea4eb220164d854f8734ca5a35e23e577b94",
          "7f2d76c9c03257c0782afef9d95321fa04096f60"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.0"
        ],
        "fixed_in": [
          "0",
          "5.10.259",
          "5.15.210",
          "6.1.176",
          "6.6.143",
          "6.12.94",
          "6.18.36",
          "7.0.13",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 8fc536e9f6856230f19c7d13e71af064b6a77b22 or c4c1ea36d83bf3c4569468ca5b8b614fda1bf821 or 25c8c7fb3b0b9668c7d05e209f58c158d2b020c7 or 42827d03f8009a6a218bacab153e21f39d6a121c or 88697cf980222d5906a37bf47662dac0732e2a0f or b5316e2b8614a87d8736941972441cb47bfd4491 or ec82ea4eb220164d854f8734ca5a35e23e577b94 or 7f2d76c9c03257c0782afef9d95321fa04096f60 or later.",
      "Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
