vdpa/mlx5: fix wrong list iterated in add_direct_chain error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 94abbccdf2916cb03f9626f2d36c6e9971490c12 · < 6ca752850de3b8162f030793cc15001aec85c4cf| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
vdpa/mlx5: fix wrong list iterated in add_direct_chain error path
In add_direct_chain(), newly allocated direct MR entries are added to the local list 'tmp', which is spliced into mr->head only on success. On the error path, the cleanup loop was incorrectly iterating over mr->head instead of tmp.
Fix by iterating over 'tmp' in the err_alloc cleanup path.
From the CVE record · Linux
The Linux kernel’s vdpa/mlx5 add_direct_chain() error path cleans up the wrong list after allocating direct MR entries. The input does not specify an attacker outcome or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with vdpa/mlx5 should check their versions; affected versions were not provided.