ntb: ntb_hw_switchtec: Fix shift-out-of-bounds for 0 mw lut
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ec0467ccbdeb69a86c8729073057bda7bce00eec · < a133e3caf844a3f56b6eef89ddaa66115874f6bd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ntb: ntb_hw_switchtec: Fix shift-out-of-bounds for 0 mw lut
Number of MW LUTs depends on NTB configuration and can be set to zero, in such scenario rounddown_pow_of_two will cause undefined behaviour and should not be performed. This patch ensures that rounddown_pow_of_two is called on valid value.
From the CVE record · Linux
The Linux kernel’s Switchtec NTB driver can perform an out-of-bounds shift when the NTB configuration has zero memory-window LUTs. This causes undefined behavior; the input does not establish what an attacker could do or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with the Switchtec NTB driver should check their deployments; affected versions are not specified.