CVE-2026-139187: tipc: fix refcount panic in tipc_rcv() when receiving shared skb
In the Linux kernel, the following vulnerability has been resolved:
tipc: fix refcount panic in tipcrcv() when receiving shared skb
TIPC assumes that the received skb is not shared with other users. However, syzbot reports a bug triggered by receiving a shared skb:
... RIP: 0010:pskbexpandhead+0x135a/0x13a0 net/core/skbuff.c:2308 pskbpulltail+0x111/0x1870 net/core/skbuff.c:2890 skbcowdata+0x2ed/0xc50 net/core/skbuff.c:5398 tipcaeaddecrypt net/tipc/crypto.c:892 [inline] tipccryptorcv+0x346/0x23d0 net/tipc/crypto.c:1843 tipcrcv+0x4b7/0x1040 net/tipc/node.c:2119 tipcl2rcvmsg+0x2d9/0x470 net/tipc/bearer.c:669 deliverptypelistskb net/core/dev.c:2533 [inline] ...
The root cause is that local delivery hooks in the kernel (e.g., deliverskb()) may increment the skb's reference count (users) before TIPC processes it on ingress.
Fix this by calling skbsharecheck() to ensure exclusive ownership before passing the skb to tipcrcv(). As TIPC needs to modify the skb's data, the cloned skb needs to be uncloned when needed. This can be addressed in separate patch.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Call skb_share_check() before passing the skb to tipc_rcv() to ensure exclusive ownership.