CVE-2026-90128: vdpa/mlx5: fix wrong list iterated in add_direct_chain error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-90128 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 5.10.270 with commit c93defccf5eb0a92bdafa43487be6ce0221a2477 Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 5.15.221 with commit ed3462365636df3bc63e34d7468f4faed3f70a4e Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 6.1.188 with commit 22d52af9e26a72bdfe2dcfb1419a091de4862cd9 Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 6.6.157 with commit eeac2ea4ad2654e3f160a9b608d05c9af31433a6 Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 6.12.110 with commit 637d867530daea61898e3346975978b7f67fc2ac Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 6.18.52 with commit 6ca752850de3b8162f030793cc15001aec85c4cf Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 7.2.6 with commit c678d04ac9e5a64c2559c43bce273e845fbd09eb Issue introduced in 5.9 with commit 94abbccdf2916cb03f9626f2d36c6e9971490c12 and fixed in 7.3-rc1 with commit 23ae56d9e74c122f95cae71ae3b9fc259fb88446
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90128
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/vdpa/mlx5/core/mr.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c93defccf5eb0a92bdafa43487be6ce0221a2477 https://git.kernel.org/stable/c/ed3462365636df3bc63e34d7468f4faed3f70a4e https://git.kernel.org/stable/c/22d52af9e26a72bdfe2dcfb1419a091de4862cd9 https://git.kernel.org/stable/c/eeac2ea4ad2654e3f160a9b608d05c9af31433a6 https://git.kernel.org/stable/c/637d867530daea61898e3346975978b7f67fc2ac https://git.kernel.org/stable/c/6ca752850de3b8162f030793cc15001aec85c4cf https://git.kernel.org/stable/c/c678d04ac9e5a64c2559c43bce273e845fbd09eb https://git.kernel.org/stable/c/23ae56d9e74c122f95cae71ae3b9fc259fb88446