{"id":"CVE-2026-23257","aliases":["CVE-2026-23257"],"related":[],"kind":"vulnerability","state":"published","title":"net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: liquidio: Corrección de error 'off-by-one' en la limpieza de PF setup_nic_devices()\n\nEn setup_nic_devices(), el bucle de inicialización salta a la etiqueta setup_nic_dev_free en caso de fallo. El bucle de limpieza actual while(i--) omite el índice 'i' fallido, causando una fuga de memoria.\n\nEsto se corrige cambiando el bucle para que itere desde el índice actual 'i' hasta 0.\n\nAdemás, se decrementa 'i' en la ruta de fallo de devlink_alloc para que apunte al último índice asignado con éxito.\n\nProbado solo en compilación. Problema encontrado mediante revisión de código.","source":"nvd"}],"published":"2026-03-18T17:41:04.078Z","modified":"2026-11-05T22:18:09.640Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-193"],"affected":[{"ranges":[{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"af38d9a5cb49fe9d0d282b44f17fdc1f3270d99d","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"d86c58eb005eb99da402452f3db7a6e0eae32815","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"f1216b80c9040a904d2ad7c8cd24ca0ff1f36932","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"a0d2389c8cdc1f05de5eb8663bffe9ed05dca769","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"f86bd16280a0f88b538394e0565c56ce4756da99","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"293eaad0d6d6b2a37a458c7deb7be345349cd963","status":"affected"},{"type":"git","introduced":"f21fb3ed364bb83533c5efe19354e337ea9ecda9","fixed":"8558aef4e8a1a83049ab906d21d391093cfa7e7f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"5.10.250","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.200","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.163","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.124","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.70","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.10","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"5.10.250"},{"status":"affected","introduced":"5.11","fixed":"5.15.200"},{"status":"affected","introduced":"5.16","fixed":"6.1.163"},{"status":"affected","introduced":"6.2","fixed":"6.6.124"},{"status":"affected","introduced":"6.7","fixed":"6.12.70"},{"status":"affected","introduced":"6.13","fixed":"6.18.10"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/af38d9a5cb49fe9d0d282b44f17fdc1f3270d99d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d86c58eb005eb99da402452f3db7a6e0eae32815","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f1216b80c9040a904d2ad7c8cd24ca0ff1f36932","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0d2389c8cdc1f05de5eb8663bffe9ed05dca769","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f86bd16280a0f88b538394e0565c56ce4756da99","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/293eaad0d6d6b2a37a458c7deb7be345349cd963","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8558aef4e8a1a83049ab906d21d391093cfa7e7f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:23:53.487Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23257","url":"https://www.cve.org/CVERecord?id=CVE-2026-23257","licence":"CVE Terms of Use","modified":"2026-11-05T21:33:33.655Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23257","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23257","licence":"Public domain","modified":"2026-11-05T22:18:09.640Z"}],"updatedAt":"2026-11-25T22:59:16.116Z","epss":{"score":0.00134,"percentile":0.03128,"date":"2026-12-01T12:00:22.000Z"}}