Commit 278c2c1
committed
eth: bnxt: fix out-of-range access of vnic_info array
JIRA: https://issues.redhat.com/browse/RHEL-106550
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 7122b1b commit 278c2c1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15797 | 15797 | | |
15798 | 15798 | | |
15799 | 15799 | | |
15800 | | - | |
| 15800 | + | |
15801 | 15801 | | |
15802 | 15802 | | |
15803 | 15803 | | |
| |||
15831 | 15831 | | |
15832 | 15832 | | |
15833 | 15833 | | |
15834 | | - | |
| 15834 | + | |
15835 | 15835 | | |
15836 | 15836 | | |
15837 | 15837 | | |
| |||
0 commit comments