CVE-2026-23257

MEDIUM

net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup

Title source: cna
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: net: liquidio: Fix off-by-one error in PF 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. Also, decrement i in the devlink_alloc failure path to point to the last successfully allocated index. Compile tested only. Issue found using code review.

Scores

CVSS v3 5.5
EPSS 0.0002
EPSS Percentile 4.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-193
Status published
Products (24)
linux/Kernel 4.2.0 - 5.10.250linux
linux/Kernel 5.11.0 - 5.15.200linux
linux/Kernel 5.16.0 - 6.1.163linux
linux/Kernel 6.13.0 - 6.18.10linux
linux/Kernel 6.2.0 - 6.6.124linux
linux/Kernel 6.7.0 - 6.12.70linux
Linux/Linux < 4.2
Linux/Linux 4.2
Linux/Linux 5.10.250 - 5.10.*
Linux/Linux 5.15.200 - 5.15.*
... and 14 more
Published Mar 18, 2026
Tracked Since Mar 18, 2026