Linux · Linux Kernel · CVE-2022-49084
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
A issue in the Linux kernel has been identified where the `qede build skb()` function assumes that `build skb()` always allocates memory successfully and proceeds to call `skb reserve()`. However, under memory pressure, `build skb()` can fail to allocate memory and return NULL, leading to a kernel panic because it attempts to reserve a NULL `skb`. The problem is resolved by adding a check to handle the case where `build skb()` fails to allocate memory.
**Recommendations**
For the affected Linux kernel versions, add a check in the `qede build skb()` function to handle the case where `build skb()` returns NULL, indicating a failed memory allocation. This check should prevent the kernel panic by correctly handling the NULL return value.