{
  "id": "CVE-2026-53262",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53262",
  "published_at": "2026-06-25T08:39:50.55Z",
  "title": "l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()",
  "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\nl2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()\n\npppol2tp_ioctl() read sock-\u003esk-\u003esk_user_data directly without any\nlocks or reference counting.  If a controllable sleep was induced during\ncopy_from_user() (e.g. via a userfaultfd page fault sleep), a concurrent\nsocket close could trigger pppol2tp_session_close() asynchronously.  This\nfrees the l2tp_session structure via the l2tp_session_del_work workqueue.\nUpon resuming, the ioctl thread dereferences the stale session pointer,\nresulting in a Use-After-Free (UAF).\n\nFix this by securely fetching the session reference using the RCU-safe,\nrefcounted helper pppol2tp_sock_to_session(sk) on entry.  This locks the\nsession's refcount across the sleep.  We structured the function to exit\nvia standard err breaks, guaranteeing that l2tp_session_put() is cleanly\ncalled on all return paths to drop the reference.\n\nTo preserve existing behavior we validate the session and its magic\nsignature only for the specific L2TP commands that require it.  This\nensures that generic/unknown ioctls called on an unconnected socket\nstill return -ENOIOCTLCMD and correctly fall back to generic handlers\n(e.g. in sock_do_ioctl()).",
  "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c cc19c164a99ab706d4cb45d3c300b305c16798b5",
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c 312ecea13b67797747eb9d4b9dab8d3846de6dfb",
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c 78cdfdca88cbf731a92f3b9ee5427c633dd94e28",
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c e251d4cdfc725c9e7d686161e3b775a0e7d95053",
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c 62f327e287cf7b595ae3f73ba72f5cd2a9e9f39f",
          "\u003e= fd558d186df2c13a22455373858bae634a4795af, \u003c a213a8950414c684999dcf03edeea6c46ede172e"
        ],
        "fixed_in": [
          "cc19c164a99ab706d4cb45d3c300b305c16798b5",
          "312ecea13b67797747eb9d4b9dab8d3846de6dfb",
          "78cdfdca88cbf731a92f3b9ee5427c633dd94e28",
          "e251d4cdfc725c9e7d686161e3b775a0e7d95053",
          "62f327e287cf7b595ae3f73ba72f5cd2a9e9f39f",
          "a213a8950414c684999dcf03edeea6c46ede172e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.35"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.94",
          "6.18.36",
          "7.0.13",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to cc19c164a99ab706d4cb45d3c300b305c16798b5 or 312ecea13b67797747eb9d4b9dab8d3846de6dfb or 78cdfdca88cbf731a92f3b9ee5427c633dd94e28 or e251d4cdfc725c9e7d686161e3b775a0e7d95053 or 62f327e287cf7b595ae3f73ba72f5cd2a9e9f39f or a213a8950414c684999dcf03edeea6c46ede172e or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.94 or 6.18.36 or 7.0.13 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
