FKIE_CVE-2026-139512

Vulnerability from fkie_nvd - Published: 2026-11-30 14:19 - Updated: 2026-11-30 14:19
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: net: psp: require an established connection for association setup Check sk_state under the socket lock in both the rx-assoc and tx-assoc handlers, and only allow association setup on sockets in TCP_ESTABLISHED. Also, fail connect() when PSP assoc state is already present, and remove the dead PSP MSS adjustment from tcp_v[46]_connect(). The net effect of this commit is: 1. PSP assoc state can never exist on a listen socket. 2. The upgrade to PSP must be done while the socket is in TCP_ESTABLISHED. This change defeatures behavior that was previously allowed under the PSP uapi. My justification is: Nothing useful can be done after association setup on closed or listen sockets today. Listen sockets could accept a PSP-encrypted TCP SYN, but the child socket will not inherit any PSP state. On the other side, establishing PSP state prior to connect() will result in a PSP-encrypted TCP SYN sent to a listening peer, which in turn has the aforementioned limitations. That implies that there cannot be any users of this feature, so it should be safe to remove it from the PSP uapi. In theory, the check in the tx-assoc path is more restrictive than necessary. FIN_WAIT1/2, CLOSING, LAST_ACK and CLOSE_WAIT could be allowed, and the peer would accept PSP-encrypted ACKs in the post-FIN-sent states, or data in the half-close case, but it is simpler to disallow those states because they don't fit the upgrade model. The check in the tx-assoc path fixes a bug in commit 6b46ca260e22 ("net: psp: add socket security association code") where an unsynchronized write can be performed on an assoc shared with a timewait socket when the socket is in TCP_CLOSE after shutdown. This commit is not targeted at net because its premise of preventing listen sockets from holding assoc state depends on net-next commit 8cc3aef0cb19 ("tcp: Do not allow buggy transitions between ehash and lhash2.")
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "Documentation/networking/psp.rst",
            "net/ipv4/tcp_ipv4.c",
            "net/ipv6/tcp_ipv6.c",
            "net/psp/psp_sock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1d5073d45d846dad26b6b8035d8a2e997d8e1d59",
              "status": "affected",
              "version": "6b46ca260e2290e3453d1355ab5b6d283d73d780",
              "versionType": "git"
            },
            {
              "lessThan": "f84e20af7d01a7f29586cf3ddff92d275615e637",
              "status": "affected",
              "version": "6b46ca260e2290e3453d1355ab5b6d283d73d780",
              "versionType": "git"
            },
            {
              "lessThan": "86a19284425fb0c420e1702f8d0de891279df6b7",
              "status": "affected",
              "version": "6b46ca260e2290e3453d1355ab5b6d283d73d780",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "Documentation/networking/psp.rst",
            "net/ipv4/tcp_ipv4.c",
            "net/ipv6/tcp_ipv6.c",
            "net/psp/psp_sock.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.18"
            },
            {
              "lessThan": "6.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: psp: require an established connection for association setup\n\nCheck sk_state under the socket lock in both the rx-assoc and tx-assoc\nhandlers, and only allow association setup on sockets in\nTCP_ESTABLISHED. Also, fail connect() when PSP assoc state is already\npresent, and remove the dead PSP MSS adjustment from\ntcp_v[46]_connect().\n\nThe net effect of this commit is:\n1. PSP assoc state can never exist on a listen socket.\n2. The upgrade to PSP must be done while the socket is in\n   TCP_ESTABLISHED.\n\nThis change defeatures behavior that was previously allowed under the\nPSP uapi. My justification is:\n\nNothing useful can be done after association setup on closed or listen\nsockets today. Listen sockets could accept a PSP-encrypted TCP SYN, but\nthe child socket will not inherit any PSP state. On the other side,\nestablishing PSP state prior to connect() will result in a PSP-encrypted\nTCP SYN sent to a listening peer, which in turn has the aforementioned\nlimitations. That implies that there cannot be any users of this\nfeature, so it should be safe to remove it from the PSP uapi.\n\nIn theory, the check in the tx-assoc path is more restrictive than\nnecessary. FIN_WAIT1/2, CLOSING, LAST_ACK and CLOSE_WAIT could be\nallowed, and the peer would accept PSP-encrypted ACKs in the\npost-FIN-sent states, or data in the half-close case, but it is simpler\nto disallow those states because they don\u0027t fit the upgrade model.\n\nThe check in the tx-assoc path fixes a bug in commit 6b46ca260e22 (\"net:\npsp: add socket security association code\") where an unsynchronized\nwrite can be performed on an assoc shared with a timewait socket when\nthe socket is in TCP_CLOSE after shutdown. This commit is not targeted\nat net because its premise of preventing listen sockets from holding\nassoc state depends on net-next commit 8cc3aef0cb19 (\"tcp: Do not allow\nbuggy transitions between ehash and lhash2.\")"
    }
  ],
  "id": "CVE-2026-139512",
  "lastModified": "2026-11-30T14:19:27.203",
  "metrics": {},
  "published": "2026-11-30T14:19:27.203",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/1d5073d45d846dad26b6b8035d8a2e997d8e1d59"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/86a19284425fb0c420e1702f8d0de891279df6b7"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/f84e20af7d01a7f29586cf3ddff92d275615e637"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.