i40e: fix vf may be used uninitialized in this function warning
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 52424f974bc53c26ba3f00300a00e9de9afcd972 · < 0dcf573f997732702917af1563aa2493dc772fc0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i40e: fix vf may be used uninitialized in this function warning
To fix the regression introduced by commit 52424f974bc5, which causes servers hang in very hard to reproduce conditions with resets races. Using two sources for the information is the root cause. In this function before the fix bumping v didn't mean bumping vf pointer. But the code used this variables interchangeably, so stale vf could point to different/not intended vf.
Remove redundant "v" variable and iterate via single VF pointer across whole function instead to guarantee VF pointer validity.
From the CVE record · Linux
A regression in the Linux kernel's i40e driver can leave a VF pointer stale during reset races, causing servers to hang under hard-to-reproduce conditions. The input does not describe an attacker path, authentication requirements, or user interaction.
Engineers running Linux systems that use the i40e driver should check their kernel versions; affected versions are not specified.