net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end()
In the Linux kernel, the following vulnerability has been resolved: net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end() The loops in 'qede_tpa_cont()' and 'qede_tpa_end()', iterate over 'cqe->len_list[]' using only a zero-length terminator as the stopping condition. If the terminator was missing or malformed, the loop could run past the end of the fixed-size array. Add an explicit bound check using ARRAY_SIZE() in both loops to prevent a potential out-of-bounds access. Found by Linux Verification Center (linuxtesting.org) with SVACE.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.197, 6.1.159, 6.12.60, 6.17.10, 6.6.118
- CVEs
- CVE-2025-40252
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 01:59 UTC · Revision 1
Source evidence
net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end()
core-osv · Original sourcePublished 4 Dec 2025, 16:08 UTC
In the Linux kernel, the following vulnerability has been resolved: net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end() The loops in 'qede_tpa_cont()' and 'qede_tpa_end()', iterate over 'cqe->len_list[]' using only a zero-length terminator as the stopping condition. If the terminator was missing or malformed, the loop could run past the end of the fixed-size array. Add an explicit bound check using ARRAY_SIZE() in both loops to prevent a potential out-of-bounds access. Found by Linux Verification Center (linuxtesting.org) with SVACE.
osv:CVE-2025-40252
Kernel
Fixed versions: 5.15.197, 6.1.159, 6.6.118, 6.12.60, 6.17.10
Complete source record
{
"id": "fe4b26439838bc3e9201a431dd7e4337fc3c595995270140ddb9f84696c9788a",
"url": "https://osv.dev/vulnerability/CVE-2025-40252",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end() The loops in 'qede_tpa_cont()' and 'qede_tpa_end()', iterate over 'cqe->len_list[]' using only a zero-length terminator as the stopping condition. If the terminator was missing or malformed, the loop could run past the end of the fixed-size array. Add an explicit bound check using ARRAY_SIZE() in both loops to prevent a potential out-of-bounds access. Found by Linux Verification Center (linuxtesting.org) with SVACE.",
"evidence": "osv:CVE-2025-40252",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.197",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.159",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.118",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.60",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2025-40252",
"aliases": [
"CVE-2025-40252"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "55482edc25f0606851de42e73618f813f310d009"
},
{
"fixed": "ecbb12caf399d7cf364b7553ed5aebeaa2f255bc"
},
{
"fixed": "a778912b4a53587ea07d85526d152f85d109cbfe"
},
{
"fixed": "f0923011c1261b33a2ac1de349256d39cb750dd0"
},
{
"fixed": "917a9d02182ac8b4f25eb47dc02f3ec679608c24"
},
{
"fixed": "e441db07f208184e0466abf44b389a81d70c340e"
},
{
"fixed": "896f1a2493b59beb2b5ccdf990503dbb16cb2256"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40252.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.6.0"
},
{
"fixed": "5.15.197"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.159"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.118"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.60"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40252.json"
}
}
],
"modified": "2026-10-28T02:30:48.860254420Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-253495.html",
"https://git.kernel.org/stable/c/896f1a2493b59beb2b5ccdf990503dbb16cb2256",
"https://git.kernel.org/stable/c/917a9d02182ac8b4f25eb47dc02f3ec679608c24",
"https://git.kernel.org/stable/c/a778912b4a53587ea07d85526d152f85d109cbfe",
"https://git.kernel.org/stable/c/e441db07f208184e0466abf44b389a81d70c340e",
"https://git.kernel.org/stable/c/ecbb12caf399d7cf364b7553ed5aebeaa2f255bc",
"https://git.kernel.org/stable/c/f0923011c1261b33a2ac1de349256d39cb750dd0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40252.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40252",
"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/2025/40xxx/CVE-2025-40252.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40252",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517178,
"published_at": "2025-12-04T16:08:14.393+00:00"
}