octeon_ep_vf: add NULL check for napi_build_skb()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeon_ep_vf: add NULL check for napi_build_skb()
napi_build_skb() can return NULL on allocation failure. In __octep_vf_oq_process_rx(), the result is used directly without a NULL check in both the single-buffer and multi-fragment paths, leading to a NULL pointer dereference.
Add NULL checks after both napi_build_skb() calls, properly advancing descriptors and consuming remaining fragments on failure.
From the CVE record · Linux
The octeon_ep_vf driver uses the result of napi_build_skb() without checking for NULL in both single-buffer and multi-fragment receive paths. An allocation failure can therefore cause a NULL pointer dereference. The input does not establish an attacker access path or authentication or user-interaction requirements.
Engineers running Linux kernels with the octeon_ep_vf driver should check whether their kernel is affected; no affected versions are listed.