eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring
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:
eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring
Replace NULL check with IS_ERR() check after calling page_pool_create() since this function returns error pointers (ERR_PTR). Using NULL check could lead to invalid pointer dereference.
From the CVE record · Linux
In the Linux kernel's mlx4 Ethernet driver, mlx4_en_create_rx_ring checks for NULL after page_pool_create(), which returns error pointers instead. This can lead to an invalid pointer dereference. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running Linux kernels with the mlx4 Ethernet driver should check their deployments; affected versions were not provided.