# CVE-2025-40252: net: qlogic/qede: fix potential out-of-bounds read in qede\_tpa\_cont() and qede\_tpa\_end()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.98% (percentile 61, 2026-11-26)
- **Published:** 2025-12-04T16:08:14.393Z
- **Modified:** 2026-10-19T19:10:00.130Z

## Who should check

- Anyone running Linux \>= 55482edc25f0606851de42e73618f813f310d009, \< ecbb12caf399d7cf364b7553ed5aebeaa2f255bc; \>= 55482edc25f0606851de42e73618f813f310d009, \< a778912b4a53587ea07d85526d152f85d109cbfe; \>= 55482edc25f0606851de42e73618f813f310d009, \< f0923011c1261b33a2ac1de349256d39cb750dd0; \>= 55482edc25f0606851de42e73618f813f310d009, \< 917a9d02182ac8b4f25eb47dc02f3ec679608c24; \>= 55482edc25f0606851de42e73618f813f310d009, \< e441db07f208184e0466abf44b389a81d70c340e; \>= 55482edc25f0606851de42e73618f813f310d009, \< 896f1a2493b59beb2b5ccdf990503dbb16cb2256
- Anyone running Linux 4.6

## Description

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.

## Affected and fixed versions

- Linux: \>= 55482edc25f0606851de42e73618f813f310d009, \< ecbb12caf399d7cf364b7553ed5aebeaa2f255bc; \>= 55482edc25f0606851de42e73618f813f310d009, \< a778912b4a53587ea07d85526d152f85d109cbfe; \>= 55482edc25f0606851de42e73618f813f310d009, \< f0923011c1261b33a2ac1de349256d39cb750dd0; \>= 55482edc25f0606851de42e73618f813f310d009, \< 917a9d02182ac8b4f25eb47dc02f3ec679608c24; \>= 55482edc25f0606851de42e73618f813f310d009, \< e441db07f208184e0466abf44b389a81d70c340e; \>= 55482edc25f0606851de42e73618f813f310d009, \< 896f1a2493b59beb2b5ccdf990503dbb16cb2256 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 896f1a2493b59beb2b5ccdf990503dbb16cb2256 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40252. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40252.md
Affected: Linux >= 55482edc25f0606851de42e73618f813f310d009, < ecbb12caf399d7cf364b7553ed5aebeaa2f255bc; >= 55482edc25f0606851de42e73618f813f310d009, < a778912b4a53587ea07d85526d152f85d109cbfe; >= 55482edc25f0606851de42e73618f813f310d009, < f0923011c1261b33a2ac1de349256d39cb750dd0; >= 55482edc25f0606851de42e…
Fixed in: Linux 917a9d02182ac8b4f25eb47dc02f3ec679608c24, Linux 896f1a2493b59beb2b5ccdf990503dbb16cb2256

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40252 being exploited?

There is no confirmed exploitation: CVE-2025-40252 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.98% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40252?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-40252?

Linux \>= 55482edc25f0606851de42e73618f813f310d009, \< ecbb12caf399d7cf364b7553ed5aebeaa2f255bc; \>= 55482edc25f0606851de42e73618f813f310d009, \< a778912b4a53587ea07d85526d152f85d109cbfe; \>= 55482edc25f0606851de42e73618f813f310d009, \< f0923011c1261b33a2ac1de349256d39cb750dd0; \>= 55482edc25f0606851de42e73618f813f310d009, \< 917a9d02182ac8b4f25eb47dc02f3ec679608c24; \>= 55482edc25f0606851de42e73618f813f310d009, \< e441db07f208184e0466abf44b389a81d70c340e; \>= 55482edc25f0606851de42e73618f813f310d009, \< 896f1a2493b59beb2b5ccdf990503dbb16cb2256; Linux 4.6.

### Is there a fix for CVE-2025-40252?

Yes. Fixed in Linux 917a9d02182ac8b4f25eb47dc02f3ec679608c24, Linux 896f1a2493b59beb2b5ccdf990503dbb16cb2256. Upgrade Linux to 896f1a2493b59beb2b5ccdf990503dbb16cb2256 or later.

### How do I check if I'm affected by CVE-2025-40252?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/ecbb12caf399d7cf364b7553ed5aebeaa2f255bc>
- other: <https://git.kernel.org/stable/c/a778912b4a53587ea07d85526d152f85d109cbfe>
- other: <https://git.kernel.org/stable/c/f0923011c1261b33a2ac1de349256d39cb750dd0>
- other: <https://git.kernel.org/stable/c/917a9d02182ac8b4f25eb47dc02f3ec679608c24>
- other: <https://git.kernel.org/stable/c/e441db07f208184e0466abf44b389a81d70c340e>
- other: <https://git.kernel.org/stable/c/896f1a2493b59beb2b5ccdf990503dbb16cb2256>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40252>

HTML: <https://flawdb.com/CVE-2025-40252> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40252>
