i40e: Fix potential invalid access when MAC list is empty
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e3219ce6a775468368fb270fae3eb82a6787b436 · < 66e7cdbda74ee823ec2bf7b830ebd235c54f5ddf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i40e: Fix potential invalid access when MAC list is empty
list_first_entry() never returns NULL - if the list is empty, it still returns a pointer to an invalid object, leading to potential invalid memory access when dereferenced.
Fix this by using list_first_entry_or_null instead of list_first_entry.
From the CVE record · Linux
The Linux kernel’s i40e component can access invalid memory when its MAC list is empty. The provided information does not specify what an attacker could do or whether exploitation requires network access, local access, authentication, or user interaction.
Teams running the Linux kernel should check whether their version includes the i40e fix; affected versions are not specified.