Description
In the Linux kernel, the following vulnerability has been resolved: tipc: fix refcount panic in tipc_rcv() 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:pskb_expand_head+0x135a/0x13a0 net/core/skbuff.c:2308 __pskb_pull_tail+0x111/0x1870 net/core/skbuff.c:2890 skb_cow_data+0x2ed/0xc50 net/core/skbuff.c:5398 tipc_aead_decrypt net/tipc/crypto.c:892 [inline] tipc_crypto_rcv+0x346/0x23d0 net/tipc/crypto.c:1843 tipc_rcv+0x4b7/0x1040 net/tipc/node.c:2119 tipc_l2_rcv_msg+0x2d9/0x470 net/tipc/bearer.c:669 deliver_ptype_list_skb net/core/dev.c:2533 [inline] ... The root cause is that local delivery hooks in the kernel (e.g., deliver_skb()) may increment the skb's reference count (`users`) before TIPC processes it on ingress. Fix this by calling skb_share_check() to ensure exclusive ownership before passing the skb to tipc_rcv(). 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
b97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < faf0a41c809dd2625774c879b968b5d5cc74675eaffectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 5307745159b2aff9517f495924a567ce01a523b1affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 18f7c182a2abdcfc3b7ff7bc00035896dbfd28f0affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 0b45ca14891a438a7e0694fc72ca76dcb5d9e511affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 227d864b37f2e069a13181e1cad0790a39b9d730affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 410e0e7b60294372718cb2175de4a95a744156e2affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < c83e717d431ebb55ffa200c384f26512a38e07f3affectedb97bf3fd8f6a16966d4f18983b2c40993ff937d4 to < 5308a2049b764aa55513c90c68933abf596c51d2affected
Linux Linux
Default version status: affected
2.6.16affected0 to < 2.6.16unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/faf0a41c809dd2625774c879b968b5d5cc74675e ↗
- https://git.kernel.org/stable/c/5307745159b2aff9517f495924a567ce01a523b1 ↗
- https://git.kernel.org/stable/c/18f7c182a2abdcfc3b7ff7bc00035896dbfd28f0 ↗
- https://git.kernel.org/stable/c/0b45ca14891a438a7e0694fc72ca76dcb5d9e511 ↗
- https://git.kernel.org/stable/c/227d864b37f2e069a13181e1cad0790a39b9d730 ↗
- https://git.kernel.org/stable/c/410e0e7b60294372718cb2175de4a95a744156e2 ↗
- https://git.kernel.org/stable/c/c83e717d431ebb55ffa200c384f26512a38e07f3 ↗
- https://git.kernel.org/stable/c/5308a2049b764aa55513c90c68933abf596c51d2 ↗