Message ID | 20230710094053.3302181-1-shaozhengchao@huawei.com (mailing list archive) |
---|---|
Headers | show |
Series | fix slab-use-after-free in decode_session6 | expand |
On Mon, Jul 10, 2023 at 05:40:50PM +0800, Zhengchao Shao wrote: > When net device is configured with the qdisc of the sfb type, the cb > field of the SKB is used in both enqueue and decode session of packets, > and the fields overlap. When enqueuing packets, the cb field of skb is > used as a hash array. Also it is used as the header offset when decoding > session of skb. Therefore, it will cause slab-use-after-free in > decode_session6. > The cb field in the skb should not be used when sending packets. Set the > cb field of skb to 0 before decoding skb. > > Zhengchao Shao (3): > xfrm: fix slab-use-after-free in decode_session6 > ip6_vti: fix slab-use-after-free in decode_session6 > ip_vti: fix potential slab-use-after-free in decode_session6 Series applied, thanks a lot!