Skip to content
Heist/ feed
Critical

net/handshake: Drain pending requests at net namespace exit

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: net/handshake: Drain pending requests at net namespace exit The arguments to list_splice_init() in handshake_net_exit() are reversed. The call moves the local empty "requests" list onto hn->hn_requests, leaving the local list empty, so the subsequent drain loop runs zero iterations. Pending handshake requests that had not yet been accepted are not torn down when the net namespace is destroyed; each one keeps a reference on a socket file and on the handshake_req allocation. Pass the source and destination in the documented order (list_splice_init(list, head) moves list onto head) so the pending list is transferred to the local scratch list and drained through handshake_complete(). Fixing the splice direction exposes a list-corruption race. After the splice each req->hr_list still has non-empty link pointers, threading the stack-local scratch list rather than hn_requests. A concurrent handshake_req_cancel() -- for example, from sunrpc's TLS timeout on a kernel socket whose netns reference was not taken -- finds the request through the rhashtable, calls remove_pending(), and sees !list_empty(&req->hr_list). __remove_pending_locked() then list_del_init()s an entry off the scratch list while the drain iterates, corrupting it. The same call arriving after the drain loop has run list_del() on an entry hits LIST_POISON instead. Have remove_pending() check HANDSHAKE_F_NET_DRAINING under hn_lock and report not-found wh

Announced Source revision 1
Original source ↗

CVE-2026-63978

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-63978

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3b3009ea8abb713b022d94fba95ec270cf6e7eae",
        "lessThan": "ee4b2ba9d30155f9945811cd3c0c1b06d45787a9",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3b3009ea8abb713b022d94fba95ec270cf6e7eae",
        "lessThan": "9ec20c9a5a04f2c3f1cf65d21f886d7aaa6189cd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3b3009ea8abb713b022d94fba95ec270cf6e7eae",
        "lessThan": "2bf24a7e190aae0ea47c78099938ae056c622e44",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3b3009ea8abb713b022d94fba95ec270cf6e7eae",
        "lessThan": "8c35539db0ab0bfa1ea44efab00b053261a69469",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3b3009ea8abb713b022d94fba95ec270cf6e7eae",
        "lessThan": "ea5fe6a73ca57e5150b8a38b341aef2636eb72f0",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/handshake/netlink.c",
      "net/handshake/request.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.4"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.4",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.93",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.44",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.0.12",
        "versionType": "semver",
        "lessThanOrEqual": "7.0.*"
      },
      {
        "status": "unaffected",
        "version": "7.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/handshake/netlink.c",
      "net/handshake/request.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-63978

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#46408 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement