Junglewise Threat Intelligence

CVE-2026-23257: Linux Kernel Liquidio off-by-one error in setup_nic_devices

CVE-2026-23257 · Severity: medium · CVSS 5.5 · Published 2026-03-18

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's Liquidio network driver that could lead to memory leaks. This occurs during the setup of network interface cards when an error happens, causing the system to fail to properly release allocated memory. Over time, this could degrade system performance or lead to a denial-of-service condition by exhausting available system memory.

Technical details

An off-by-one error exists in the 'liquidio' Ethernet driver within the 'setup_nic_devices()' function in 'drivers/net/ethernet/cavium/liquidio/lio_main.c'. When the initialization loop fails and jumps to the 'setup_nic_dev_free' label, the cleanup loop 'while(i--)' incorrectly skips the current index 'i', resulting in a memory leak of the resources allocated at that index. Additionally, the 'devlink_alloc' failure path failed to decrement the index to account for the last successfully allocated device. This is a local vulnerability that can be triggered during hardware initialization or driver loading, potentially leading to kernel memory exhaustion. Patches have been released across multiple stable kernel branches to correct the loop logic and index management.

Affected products

  • Linux Linux Kernel 4.2 to 5.10.250, 5.11 to 5.15.200, 5.16 to 6.1.163, 6.2 to 6.6.124, 6.7 to 6.12.70, 6.13 to 6.18.10, 6.19-rc1 to 6.19-rc8

Timeline

  • 2026-03-18: disclosed
  • 2026-03-18: advisory

References