KernelScan.io

HIGH Introduced in 5.6

strparser Teardown UAF

CVE-2026-99056

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.1HIGH

01

In the Linux kernel, the following vulnerability has been resolved: strparser: make sure __strp_recv isn't running before tearing down the parser The comment above strp_done() claims that if strp is stopped, strp_recv will no longer be called. That's only true if the caller has a mechanism (eg locking) to guarantee that strp_recv() calls that started before strp_stop() have completed by the time we call strp_done(). This adds a dummy lock_sock/release_sock pair to guarantee that any in-flight strp_recv() (which runs under either bh_lock_sock or lock_sock, depending if it's called from ->sk_data_ready or strp_work) has completed. Only espintcp can be affected by this race condition, but this patch makes sure no future user of strp can have the bug. This could crash on strp->sk ("general mode" of strp), but this mode has been here for 9 years and has never been used. It'll be gone soon, no point worrying about it. Switch the stopped/paused/etc bits to u8's to avoid races between strp_stop() and strp_pause/unpause(). A reproducer has been published and turns the possible UAF into an exploit [1].

02

Engine v0.9.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can trigger a use-after-free in the stream parser teardown path by racing IPsec ESP-in-TCP parser shutdown against concurrent packet processing. Successful exploitation yields arbitrary kernel read/write and privilege escalation. Products terminating ESP-in-TCP VPN connections are primarily at risk.

Affectednet/strparser/strparser.c (strparser subsystem)

Vulnerability analysis

The stream parser (strparser) subsystem contains a race condition between parser teardown and in-flight packet processing. When strp_stop() marks the parser as stopped and strp_done() proceeds to free resources, there was no synchronization to wait for strp_recv() calls that had already started — these run under the socket lock (either bh_lock_sock from the data-ready callback or lock_sock from the work queue). The fix adds a lock_sock/release_sock pair in strp_done() to drain any concurrent strp_recv() execution before freeing the parser object, and converts the stopped/paused/aborted flags from single-bit bitfields to full u8 bytes to eliminate races between strp_stop() and strp_pause/unpause(). An attacker who can create and destroy IPsec ESP-in-TCP sockets (requiring CAP_NET_ADMIN, available in user namespaces) while flooding the connection with TCP packets can widen the race window and convert the use-after-free into a kernel privilege escalation.

03

BranchIntroducedFixed inPatch commit
5.105.65.10.273b09071e2f846
5.155.65.15.224933df60a465b
6.15.66.1.19161cc5dac60d5
6.125.66.12.1139f3e9fe1b155
6.185.66.18.57d2b5f637b9b6
6.65.66.6.160a18dd388045d
7.25.67.2.11eaa3a29004c0
mainline5.67.30984ebc63179
cip/6.125.66.12.114-cip349f3e9fe1b155

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)