{"id":"CVE-2026-23257","summary":"net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup\n\nIn setup_nic_devices(), the initialization loop jumps to the label\nsetup_nic_dev_free on failure. The current cleanup loop while(i--)\nskip the failing index i, causing a memory leak.\n\nFix this by changing the loop to iterate from the current index i\ndown to 0.\n\nAlso, decrement i in the devlink_alloc failure path to point to the\nlast successfully allocated index.\n\nCompile tested only. Issue found using code review.","modified":"2026-04-02T13:12:18.487857Z","published":"2026-03-18T17:41:04.078Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23257.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/293eaad0d6d6b2a37a458c7deb7be345349cd963"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8558aef4e8a1a83049ab906d21d391093cfa7e7f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0d2389c8cdc1f05de5eb8663bffe9ed05dca769"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af38d9a5cb49fe9d0d282b44f17fdc1f3270d99d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d86c58eb005eb99da402452f3db7a6e0eae32815"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1216b80c9040a904d2ad7c8cd24ca0ff1f36932"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f86bd16280a0f88b538394e0565c56ce4756da99"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23257.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23257"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9"},{"fixed":"af38d9a5cb49fe9d0d282b44f17fdc1f3270d99d"},{"fixed":"d86c58eb005eb99da402452f3db7a6e0eae32815"},{"fixed":"f1216b80c9040a904d2ad7c8cd24ca0ff1f36932"},{"fixed":"a0d2389c8cdc1f05de5eb8663bffe9ed05dca769"},{"fixed":"f86bd16280a0f88b538394e0565c56ce4756da99"},{"fixed":"293eaad0d6d6b2a37a458c7deb7be345349cd963"},{"fixed":"8558aef4e8a1a83049ab906d21d391093cfa7e7f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23257.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"fixed":"5.10.250"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.200"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.124"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.70"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23257.json"}}],"schema_version":"1.7.5"}