net: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 55482edc25f0606851de42e73618f813f310d009 · < 896f1a2493b59beb2b5ccdf990503dbb16cb2256| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s qlogic/qede driver can read past a fixed-size array in qede_tpa_cont() and qede_tpa_end() if a zero-length terminator is missing or malformed. The input does not establish how an attacker could trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with the qlogic/qede driver should check their versions; affected versions were not specified.