net: lan966x: fix page pool leak in error paths
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 leak in error paths
lan966x_fdma_rx_alloc() creates a page pool but does not destroy it if the subsequent fdma_alloc_coherent() call fails, leaking the pool.
Similarly, lan966x_fdma_init() frees the coherent DMA memory when lan966x_fdma_tx_alloc() fails but does not destroy the page pool that was successfully created by lan966x_fdma_rx_alloc(), leaking it.
Add the missing page_pool_destroy() calls in both error paths.
From the CVE record · Linux
The lan966x driver leaks a page pool when coherent DMA allocation fails or when transmit allocation fails after receive allocation succeeds. The input does not describe an attacker action or specify network, authentication, or user-interaction requirements.
Engineers running the Linux kernel with the lan966x driver should check their deployments; affected versions are not specified.