KernelScan.io

HIGH Introduced in 4.9

kcm StrParser UAF

CVE-2026-90143

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.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: net: kcm: Hold RCU read lock while running BPF parser kcm_parse_func_strparser() calls bpf_prog_run_pin_on_cpu() which prevents CPU migration, but does not establish an RCU read-side critical section. Consequently, BPF map operations can trigger WARN_ON_ONCE(!bpf_rcu_lock_held()) when called from the KCM strparser program. Hold the RCU read lock while running the program.

02

Engine v0.6.0

Risk summary

Systems using the KCM (Kernel Connection Multiplexor) subsystem with BPF stream parser programs are at risk of use-after-free via concurrent map operations during BPF program execution. The vulnerability requires local access with CAP_NET_ADMIN to configure KCM and attach a BPF parser, but may be reachable from unprivileged users through user namespaces on systems that allow them. Impact ranges from kernel warnings and system crashes to potential memory corruption and privilege escalation.

Affectednet/kcm/kcmsock.c (KCM - Kernel Connection Multiplexor)

Vulnerability analysis

The KCM stream parser runs an attached BPF program to parse incoming network data but does not establish a read-side critical section around the execution. As a result, map operations inside the BPF parser can access data structures that another CPU is concurrently freeing, creating a use-after-free condition, and will also trigger a kernel warning that may panic the system if warnings are configured as fatal. The fix wraps the BPF program execution in a read-side critical section so that map elements remain valid for the duration of the parser call. Setting up a KCM socket with a BPF stream parser requires CAP_NET_ADMIN, which may be obtainable through a user namespace on systems that allow unprivileged user namespace creation; once configured, any traffic flowing through the KCM socket triggers the unsafe parser path.

03

BranchIntroducedFixed inPatch commit
5.104.95.10.27037108861cf7b
5.154.95.15.2213c70d27e792a
6.14.96.1.1881d26a6e007d4
6.124.96.12.11021526f8a191a
6.184.96.18.52292846223ead
6.64.96.6.157b0e94ea63dbd
7.24.97.2.6f392affef3c9
mainline4.97.3b0346dd64e49
cip/5.104.95.10.271-cip7837108861cf7b
cip/5.10-rt4.95.10.272-cip79-rt3537108861cf7b
cip/6.14.96.1.189-cip611d26a6e007d4
cip/6.1-rt4.96.1.189-cip61-rt321d26a6e007d4
cip/6.124.96.12.111-cip3221526f8a191a

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.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)