net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool()
page_pool_create() can return an ERR_PTR on failure. The return value is used unconditionally in the loop that follows, passing the error pointer through xdp_rxq_info_reg_mem_model() into page_pool_use_xdp_mem(), which dereferences it, causing a kernel oops.
Add an IS_ERR check after page_pool_create() to return early on failure.
From the CVE record · Linux
The Linux kernel’s lan966x driver does not check whether page_pool_create() failed before using its return value. If that call fails, the driver can dereference an error pointer and cause a kernel oops. The input does not specify whether an attacker can trigger the failure or what access would be required.
Engineers running the Linux kernel with the lan966x driver should check their kernel version; affected versions are not specified.