bnxt: Do not read past the end of test names
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bnxt: Do not read past the end of test names
Test names were being concatenated based on a offset beyond the end of the first name, which tripped the buffer overflow detection logic:
detected buffer overflow in strnlen [...] Call Trace: bnxt_ethtool_init.cold+0x18/0x18
Refactor struct hwrm_selftest_qlist_output to use an actual array, and adjust the concatenation to use snprintf() rather than a series of strncat() calls.
From the CVE record · Linux
The Linux kernel's bnxt driver can read past the end of a test name while concatenating test names, triggering buffer-overflow detection. The input does not specify how an attacker could trigger this or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with the bnxt driver should check their versions; affected versions are not specified.