In the Linux kernel, the following vulnerability has been resolved: xen/netfront: don't leak the skb when xennet_fill_frags() fails When a response chain has more slots than fit in the skb's frags, xennet_fill_frags() returns an error and xennet_poll() jumps to its error path. Этот путь перемещает то, что осталось на tmpq, в errq, чтобы освободиться, но заполняемый skb уже был декьюирован из tmpq, поэтому он никогда не освобождается. Каждая цепочка, которая переполняется, пропускает skb и страницы, прикрепленные к нему, как фрагменты, и бэкэнд решает, сколько слотов он отправляет.
Поместите skb обратно на tmpq, прежде чем принимать путь ошибки, как xennet_set_skb_gso () сбой чуть выше.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: xen/netfront: don't leak the skb when xennet_fill_frags() fails When a response chain has more slots than fit in the skb's frags, xennet_fill_frags() returns an error and xennet_poll() jumps to its error path. That path moves what's left on tmpq to errq to be freed, but the skb being filled was already dequeued from tmpq, so it's never freed. Each chain that overflows leaks the skb and the pages attached to it as frags, and the backend decides how many slots it sends. Put the skb back on tmpq before taking the error path, like the xennet_set_skb_gso() failure just above it does.