HIGH Introduced in 4.9
kcm StrParser UAF
CVE-2026-90143
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.9 | 5.10.270 | 37108861cf7b |
| 5.15 | 4.9 | 5.15.221 | 3c70d27e792a |
| 6.1 | 4.9 | 6.1.188 | 1d26a6e007d4 |
| 6.12 | 4.9 | 6.12.110 | 21526f8a191a |
| 6.18 | 4.9 | 6.18.52 | 292846223ead |
| 6.6 | 4.9 | 6.6.157 | b0e94ea63dbd |
| 7.2 | 4.9 | 7.2.6 | f392affef3c9 |
| mainline | 4.9 | 7.3 | b0346dd64e49 |
| cip/5.10 | 4.9 | 5.10.271-cip78 | 37108861cf7b |
| cip/5.10-rt | 4.9 | 5.10.272-cip79-rt35 | 37108861cf7b |
| cip/6.1 | 4.9 | 6.1.189-cip61 | 1d26a6e007d4 |
| cip/6.1-rt | 4.9 | 6.1.189-cip61-rt32 | 1d26a6e007d4 |
| cip/6.12 | 4.9 | 6.12.111-cip32 | 21526f8a191a |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |