net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.250, 5.15.200, 6.1.163, 6.12.70, 6.18.10, 6.6.124
- CVEs
- CVE-2026-23257
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 07:47 UTC · Revision 1
Source evidence
net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup
core-osv · Original sourcePublished 18 Mar 2026, 17:41 UTC
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.
osv:CVE-2026-23257
Kernel
Fixed versions: 5.10.250, 5.15.200, 6.1.163, 6.6.124, 6.12.70, 6.18.10
Complete source record
{
"id": "ad45b966f762d5ec7457538c3f47bf2cb16b01025cfc6078285174acbd3ab771",
"url": "https://osv.dev/vulnerability/CVE-2026-23257",
"method": "structured",
"payload": {
"kind": "advisory",
"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: 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.",
"evidence": "osv:CVE-2026-23257",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.250",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.200",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.163",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.124",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.70",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-23257",
"aliases": [
"CVE-2026-23257"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23257.json"
}
}
],
"modified": "2026-10-28T02:30:50.541711441Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/293eaad0d6d6b2a37a458c7deb7be345349cd963",
"https://git.kernel.org/stable/c/8558aef4e8a1a83049ab906d21d391093cfa7e7f",
"https://git.kernel.org/stable/c/a0d2389c8cdc1f05de5eb8663bffe9ed05dca769",
"https://git.kernel.org/stable/c/af38d9a5cb49fe9d0d282b44f17fdc1f3270d99d",
"https://git.kernel.org/stable/c/d86c58eb005eb99da402452f3db7a6e0eae32815",
"https://git.kernel.org/stable/c/f1216b80c9040a904d2ad7c8cd24ca0ff1f36932",
"https://git.kernel.org/stable/c/f86bd16280a0f88b538394e0565c56ce4756da99",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23257.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23257",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23257.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23257",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518673,
"published_at": "2026-03-18T17:41:04.078+00:00"
}