nfp: flower: handle acti_netdevs allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bb9a8d031140f186d13d82f57b0f5646d596652f · < 408ba7fd04f959c61b50db79c983484312fea642| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfp: flower: handle acti_netdevs allocation failure
The kmalloc_array() in nfp_fl_lag_do_work() will return null, if the physical memory has run out. As a result, if we dereference the acti_netdevs, the null pointer dereference bugs will happen.
This patch adds a check to judge whether allocation failure occurs. If it happens, the delayed work will be rescheduled and try again.
From the CVE record · Linux
In the Linux kernel's nfp flower driver, memory exhaustion can cause an allocation to fail and a subsequent null pointer dereference. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the nfp flower driver should check their versions; affected versions were not provided.