Commit 30d873f
committed
eth: bnxt: fix out-of-range access of vnic_info array
JIRA: https://issues.redhat.com/browse/RHEL-107291
CVE: CVE-2025-22112
commit 919f9f4
Author: Taehee Yoo <ap420073@gmail.com>
Date: Sun Mar 16 02:58:37 2025 +0000
eth: bnxt: fix out-of-range access of vnic_info array
The bnxt_queue_{start | stop}() access vnic_info as much as allocated,
which indicates bp->nr_vnics.
So, it should not reach bp->vnic_info[bp->nr_vnics].
Fixes: 6619585 ("eth: bnxt: do not use BNXT_VNIC_NTUPLE unconditionally in queue restart logic")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250316025837.939527-1-ap420073@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>1 parent f6cad31 commit 30d873f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15800 | 15800 | | |
15801 | 15801 | | |
15802 | 15802 | | |
15803 | | - | |
| 15803 | + | |
15804 | 15804 | | |
15805 | 15805 | | |
15806 | 15806 | | |
| |||
15834 | 15834 | | |
15835 | 15835 | | |
15836 | 15836 | | |
15837 | | - | |
| 15837 | + | |
15838 | 15838 | | |
15839 | 15839 | | |
15840 | 15840 | | |
| |||
0 commit comments