diff options
| author | 2026-05-13 18:42:53 +0200 | |
|---|---|---|
| committer | 2026-05-15 17:22:43 -0700 | |
| commit | c0bf0a4f3f1f5f57aa83e1400ba4f56f0abfd542 (patch) | |
| tree | 51a4658541db7aba3d0b830ff68e072b70514409 /include/linux/bcma/ssh:/git@git.zx2c4.com | |
| parent | IB/IPoIB: ndo_set_rx_mode_async conversion (diff) | |
octeontx2-af: CGX: add bounds check to cgx_speed_mbps index
cgx_speed_mbpsĀ has 13 elements but RESP_LINKSTAT_SPEED can yield values
0-15. If it returns a value >= 13, this causes an out-of-bounds array
access. Add a bounds check and default to speed 0 if the index is out of
range.
Fixes: 61071a871ea6 ("octeontx2-af: Forward CGX link notifications to PFs")
Cc: Sunil Goutham <sgoutham@marvell.com>
Cc: Linu Cherian <lcherian@marvell.com>
Cc: Geetha sowjanya <gakula@marvell.com>
Cc: hariprasad <hkelam@marvell.com>
Cc: Subbaraya Sundeep <sbhatta@marvell.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>
Cc: stable <stable@kernel.org>
Signed-off-by: Sam Daly <sam@samdaly.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2026051352-refined-demise-e88d@gregkh
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
