# CVE-2026-139512: net: psp: require an established connection for association setup

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:26.187Z
- **Modified:** 2026-11-30T14:19:27.203Z

## Who should check

- Anyone running Linux \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 1d5073d45d846dad26b6b8035d8a2e997d8e1d59; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< f84e20af7d01a7f29586cf3ddff92d275615e637; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 86a19284425fb0c420e1702f8d0de891279df6b7
- Anyone running Linux 6.18

## Description

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.")

## Affected and fixed versions

- Linux: \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 1d5073d45d846dad26b6b8035d8a2e997d8e1d59; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< f84e20af7d01a7f29586cf3ddff92d275615e637; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 86a19284425fb0c420e1702f8d0de891279df6b7 (cvelist)
- Linux: 6.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 86a19284425fb0c420e1702f8d0de891279df6b7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139512. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139512.md
Affected: Linux >= 6b46ca260e2290e3453d1355ab5b6d283d73d780, < 1d5073d45d846dad26b6b8035d8a2e997d8e1d59; >= 6b46ca260e2290e3453d1355ab5b6d283d73d780, < f84e20af7d01a7f29586cf3ddff92d275615e637; >= 6b46ca260e2290e3453d1355ab5b6d283d73d780, < 86a19284425fb0c420e1702f8d0de891279df6b7; Linux 6.18
Fixed in: Linux 1d5073d45d846dad26b6b8035d8a2e997d8e1d59, Linux 86a19284425fb0c420e1702f8d0de891279df6b7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139512 being exploited?

There is no confirmed exploitation: CVE-2026-139512 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139512?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139512?

Linux \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 1d5073d45d846dad26b6b8035d8a2e997d8e1d59; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< f84e20af7d01a7f29586cf3ddff92d275615e637; \>= 6b46ca260e2290e3453d1355ab5b6d283d73d780, \< 86a19284425fb0c420e1702f8d0de891279df6b7; Linux 6.18.

### Is there a fix for CVE-2026-139512?

Yes. Fixed in Linux 1d5073d45d846dad26b6b8035d8a2e997d8e1d59, Linux 86a19284425fb0c420e1702f8d0de891279df6b7. Upgrade Linux to 86a19284425fb0c420e1702f8d0de891279df6b7 or later.

### How do I check if I'm affected by CVE-2026-139512?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/1d5073d45d846dad26b6b8035d8a2e997d8e1d59>
- other: <https://git.kernel.org/stable/c/f84e20af7d01a7f29586cf3ddff92d275615e637>
- other: <https://git.kernel.org/stable/c/86a19284425fb0c420e1702f8d0de891279df6b7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139512>

HTML: <https://flawdb.com/CVE-2026-139512> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139512>
