In the Linux kernel, the following vulnerability has been resolved: qede: confirm skb is allocated before using qedebuildskb() assumes buildskb() always works and goes straight to skbreserve(). However, buildskb() can fail under memory pressure. This results in a kernel panic because the skb to reserve is NULL. Add a check in case buildskb() failed to allocate and return NULL. The NULL return is handled correctly in callers to qedebuildskb().