{
  "id": "CVE-2026-72222",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-72222",
  "published_at": "2026-08-15T05:54:15.277Z",
  "title": "sunrpc: pin svc_xprt across the asynchronous TLS handshake callback",
  "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\nsunrpc: pin svc_xprt across the asynchronous TLS handshake callback\n\nsvc_tcp_handshake() stores the raw svc_xprt pointer in\ntls_handshake_args.ta_data and submits the request through\ntls_server_hello_x509(). The handshake core takes only\nsock_hold(req-\u003ehr_sk); nothing references the embedding struct\nsvc_sock that svc_tcp_handshake_done() reaches via container_of().\n\nTwo close races leave the in-flight callback writing through a freed\nsvc_sock. svc_sock_free() calls tls_handshake_cancel() and discards\nits return value: a false return means handshake_complete() has\nalready set HANDSHAKE_F_REQ_COMPLETED but hp_done() may not have\nfinished, yet svc_sock_free() proceeds to kfree(svsk). The\ncancel-loser fall-through inside svc_tcp_handshake() itself produces\nthe same window: when wait_for_completion_interruptible_timeout()\nreturns \u003c= 0 (timeout or signal) and tls_handshake_cancel() returns\nfalse, the function does not drain, returns, and svc_handle_xprt()\ncalls svc_xprt_received(), which clears XPT_BUSY and can drop the\nlast reference. A concurrent close then runs svc_sock_free() while\nsvc_tcp_handshake_done() is still updating xpt_flags and walking\nsvsk-\u003esk_handshake_done.\n\nThe corruption surfaces as set_bit/clear_bit RMW into the freed\nxpt_flags slab slot and as complete_all() walking and writing the\nfreed wait_queue_head_t list embedded in sk_handshake_done -- a\nslab-corruption primitive, not a benign read. The path is reachable\non any TLS-enabled NFS server whenever a connection close overlaps\nthe tlshd downcall delivery window; the interruptible wait means\nsignal delivery suffices, not just SVC_HANDSHAKE_TO expiry.\n\nTake svc_xprt_get(xprt) immediately before tls_server_hello_x509()\nso the in-flight callback owns its own reference. Release it on the\ntwo edges where the callback is guaranteed not to fire -- submission\nfailure from tls_server_hello_x509() and a successful\ntls_handshake_cancel() -- and at the tail of\nsvc_tcp_handshake_done() after complete_all().\n\n[cel: rewrote commit message to describe the actual change]",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= b3cbf98e2fdf3cb147a95161560cd25987284330, \u003c f3b55945dd99f29d83e1965d0141040a35262346",
          "\u003e= b3cbf98e2fdf3cb147a95161560cd25987284330, \u003c 2d4f97d13fff91e0bc539216be88b884b544d49f",
          "\u003e= b3cbf98e2fdf3cb147a95161560cd25987284330, \u003c 3f9ee75a97a769be258784c22b89657acb5ed9bd",
          "\u003e= b3cbf98e2fdf3cb147a95161560cd25987284330, \u003c 083e9c2ec7e8bb13b79c9fd7b337abdd758ecc5f",
          "\u003e= b3cbf98e2fdf3cb147a95161560cd25987284330, \u003c 4f988f3a2808fb659f3880c282041ff067acad78"
        ],
        "fixed_in": [
          "f3b55945dd99f29d83e1965d0141040a35262346",
          "2d4f97d13fff91e0bc539216be88b884b544d49f",
          "3f9ee75a97a769be258784c22b89657acb5ed9bd",
          "083e9c2ec7e8bb13b79c9fd7b337abdd758ecc5f",
          "4f988f3a2808fb659f3880c282041ff067acad78"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.4"
        ],
        "fixed_in": [
          "0",
          "6.6.145",
          "6.12.97",
          "6.18.40",
          "7.1.5",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f3b55945dd99f29d83e1965d0141040a35262346 or 2d4f97d13fff91e0bc539216be88b884b544d49f or 3f9ee75a97a769be258784c22b89657acb5ed9bd or 083e9c2ec7e8bb13b79c9fd7b337abdd758ecc5f or 4f988f3a2808fb659f3880c282041ff067acad78 or later.",
      "Upgrade Linux to 0 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
