Skip to main content
← Vulnerabilities

net: psp: do not inherit the Rx association on clone

Affects Linux kernel 6.18.0 to before 6.18.59 and 6.19.0 to before 7.2.13 when a socket with a PSP association is cloned or accepted from a listener. Fixed in 6.18.59 and 7.2.13.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Published
Last modified
Published
Not listed in CISA KEV
33/100
Specific setups only
Fix
Fixed in 6.18.59, 7.2.13
None on Exploit-DB, Metasploit or GitHub
On X
View the cve.now post

Summary

The vulnerability affects the Linux kernel's PSP (Path Security Protocol) networking code, specifically how TCP sockets handle the PSP association when a listening socket accepts connections or is reconfigured. Improper reference handling can lead to a use-after-free condition, which may allow a local user to crash the system or potentially corrupt kernel memory.

Read the original description

In the Linux kernel, the following vulnerability has been resolved: net: psp: do not inherit the Rx association on clone sk->psp_assoc sits past sk_dontcopy_end, so sock_copy() copies it into every socket accepted from a listener without taking a reference, while inet_sock_destruct() puts for every inet socket. psp_twsk_init() does refcount_inc() for the timewait socket, so a child closing through TIME_WAIT cancels its own put and leaves the association with one reference and N timewait sockets holding the same pointer. Closing the listener frees it, and the timewait timers then put freed memory. Rejecting the association on a listening socket is not sufficient: a socket can acquire one while established and then be turned back into a listener, because tcp_disconnect() leaves sk->psp_assoc in place. BUG: KASAN: slab-use-after-free in psp_twsk_assoc_free+0x6f/0xf0 Write of size 4 at addr ffff888110f9255c by task swapper/7/0 psp_twsk_assoc_free+0x6f/0xf0 inet_twsk_put+0xda/0x1b0 call_timer_fn+0x53/0x2e0 __run_timers+0x764/0xa80 Freed by task 99: kfree+0x1a7/0x500 process_one_work+0x7ec/0x1100 An association carries a per-connection SPI and key, so a child must not inherit the parent's. Clear it on clone.

What to do

  • Check whether your setup matches what the bug needs.

    The socket holds a PSP security association (sk->psp_assoc) when it is cloned or accepted from a listener. A socket that was established with a PSP association and then turned back into a listener via tcp_disconnect() keeps that association.
  • Upgrade to a fixed version: 6.18.59, 7.2.13.

Timeline

  1. CVE published
  2. First seen by cve.now3 days
  3. Record last updated
  4. Posted on X by cve.now

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    6.18

  • KernelLinux

    From 6.18.0 · fixed in 6.18.59; From 6.19.0 · fixed in 7.2.13

Evidence 3

  1. Link
  2. Link
  3. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

FAQ

Questions about CVE-2026-99116

What does this mean?

When a socket that holds a PSP security association is cloned or accepted from a listener, the copy keeps that association. A socket that had a PSP association and was later turned back into a listener with tcp_disconnect() also keeps it. After the listener is closed, TIME_WAIT timers can put memory that was already freed, which corrupts kernel memory.Source: git.kernel.org

Am I affected, and how do I check?

Affected kernels are 6.18.0 through 6.18.59 and 6.19.0 through 7.2.12. To check a system, run uname -r to see the running kernel version. The bug needs a socket that holds a PSP association and is cloned, accepted from a listener, or turned into a listener with tcp_disconnect().Source: git.kernel.org

What should I do about it?

Update to kernel 6.18.59 or 7.2.13, whichever matches the release line in use. These are the fixed versions listed for the affected ranges.Source: git.kernel.org

Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data