CVE-2026-23256: net: liquidio: Fix off-by-one error in VF setup_nic_devices() cleanup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: liquidio: Fix off-by-one error in VF setup_nic_devices() cleanup
In setup_nic_devices(), the initialization loop jumps to the label setup_nic_dev_free on failure. The current cleanup loop while(i--) skip the failing index i, causing a memory leak.
Fix this by changing the loop to iterate from the current index i down to 0.
Compile tested only. Issue found using code review.
The Linux kernel CVE team has assigned CVE-2026-23256 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 5.10.250 with commit bd680e56e316be92c01568be98d85d7a6c9bd92c Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 5.15.200 with commit 01fbca1e93ec3f39f76c31a8f9afa32ce00da48a Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 6.1.163 with commit 71a56b89203ec7e5670d94a61a9b4ae617eca804 Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 6.6.124 with commit 3bf519e39b51cb08a93c0599870b35a23db1031e Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 6.12.70 with commit 52b19b3a22306fe452ec9e8ff96063f4bfb77b99 Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 6.18.10 with commit 4640fa5ad5e1a0dbd1c2d22323b7d70a8107dcfd Issue introduced in 4.10 with commit 846b46873eeb3baf40f7e6d8fe8f98aec95e7727 and fixed in 6.19 with commit 6cbba46934aefdfb5d171e0a95aec06c24f7ca30
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-23256
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/net/ethernet/cavium/liquidio/lio_vf_main.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/bd680e56e316be92c01568be98d85d7a6c9bd92c https://git.kernel.org/stable/c/01fbca1e93ec3f39f76c31a8f9afa32ce00da48a https://git.kernel.org/stable/c/71a56b89203ec7e5670d94a61a9b4ae617eca804 https://git.kernel.org/stable/c/3bf519e39b51cb08a93c0599870b35a23db1031e https://git.kernel.org/stable/c/52b19b3a22306fe452ec9e8ff96063f4bfb77b99 https://git.kernel.org/stable/c/4640fa5ad5e1a0dbd1c2d22323b7d70a8107dcfd https://git.kernel.org/stable/c/6cbba46934aefdfb5d171e0a95aec06c24f7ca30